-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend compliance test suite #78
Comments
Yes, this is definitely needed and I'd schedule implementation right after API spec v0.3 as the API spec v0.0.2 is not formalized enough to be really testable. We need to think about tooling for both the JSON responses and for the processed EO data itself. JSON responses can probably tested relatively easy with tools
For EO data validation we may need a custom implementation or does anybody know of any EO comparison / test suite? File comparison on a binary or checksum level probably won't give good results as files will probably always slightly change. We also need to test the "work-flow" / complete use cases. That probably needs to be custom made by us. We might want to have both smaller data sets to test against and can be run on a single machine in some minutes, but also larger ones for more extensive tests. We still need test data. Can pilot users provide any data? |
For completeness: Edzer asked on the mailing list:
Response from Noel:
|
I signed up for assertible.com and had a look at it. It offers quite a wide range of assertion types and the free plan does allow a fair amount of tests. They offer the possibility to import from a Swagger/OpenAPI (v2 or v3) definition (among others, like a Postman collection or "API Blueprint"). So I had a try importing our Assertible.com therefore doesn't look like THE tool that could automatically turn our OpenAPI definition into a testing suite. Manual conversion of the schemas would be necessary. If that's done, the service could be quite powerful. |
My colleague Marc Jansen (https://github.com/marcjansen) suggests to look at https://www.soapui.org |
Thanks for the idea @neteler. I installed it and my impression isn't positive. I wasn't able to find an import option for Swagger, which immediately makes this suite a worse choice than Assertible. There's supposed to be a plugin that adds Swagger import, but it appears to be broken and unsupported. Also, looking at their releases section, SoapUI seems to be a stale project in general. I couldn't find hints on whether it even supports OpenAPI v3, and therefore doubt it does. To me it appears that while the SoapUI software (or the Ready API suite, of which it is a part) is still sold (the SoapUI pro version is ca. 600 euros per year), SmartBear's focus now lies on Swagger Editor and Swagger UI etc. as indicated e.g. by this blogpost, which mentions these two tools but not "the old ones" - I guess they're not being developed anymore. Further input is highly appreciated! |
... ok, we didn't check SoapUI in detail. Will keep eyes open! |
I found another tools we should check out later as OAS3 support is still work in progress: https://bitbucket.org/atlassian/swagger-request-validator |
During EODC Forum it was also asked by users to bring this forward with regards to comparability of results. Comment from @TomMiksa:
|
That's interesting: opengeospatial/ogcapi-features#129 |
Work will start here after releasing API version 0.3: https://github.com/Open-EO/openeo-backend-validator |
To formalize our API spec, a black-box test suite for backends is needed. This has already been discussed during the sprints, but apparently did not yet exist as an issue.
This relates to other issues that try to formalize the API.
It might be needed to also provide a small dataset, that should be exposed by the backend that want to do a validation. This will allow the test to also compare the actual output of algorithms.
The text was updated successfully, but these errors were encountered: