Skip to content
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

api: use schemathesis to test API using openAPI spec #711

Open
matthiasschaub opened this issue Aug 30, 2023 · 2 comments
Open

api: use schemathesis to test API using openAPI spec #711

matthiasschaub opened this issue Aug 30, 2023 · 2 comments
Labels
api priority:low Should be quite a far way down on the agenda tests Issues with tests

Comments

@matthiasschaub
Copy link
Collaborator

https://github.com/schemathesis/schemathesis

@matthiasschaub matthiasschaub added api tests Issues with tests labels Aug 30, 2023
@matthiasschaub
Copy link
Collaborator Author

st run --checks all https://api.quality.ohsome.org/v1/openapi.json

Schema location: https://api.quality.ohsome.org/v1/openapi.json
Base URL: https://api.quality.ohsome.org/v1
Specification version: Open API 3.1.0
Workers: 1
Collected API operations: 10

POST /v1/indicators/{key} F
GET /v1/metadata .
GET /v1/metadata/topics .
GET /v1/metadata/topics/{key} .
GET /v1/metadata/quality-dimensions .
GET /v1/metadata/quality-dimensions/{key} .
GET /v1/metadata/projects .
GET /v1/metadata/projects/{key} F
GET /v1/metadata/indicators .
GET /v1/metadata/indicators/{key} .
===== SUMMARY =====

Performed checks:
    not_a_server_error                              687 / 797 passed          FAILED
    status_code_conformance                         687 / 797 passed          FAILED
    content_type_conformance                        797 / 797 passed          PASSED
    response_headers_conformance                    797 / 797 passed          PASSED
    response_schema_conformance                     348 / 797 passed          FAILED

Hint: You can visualize test results in Schemathesis.io by using `--report` in your CLI command.

===== 8 passed, 2 failed in 82.58s =====

@matthiasschaub
Copy link
Collaborator Author

Retry after #704 has been merged.

@matthiasschaub matthiasschaub added the priority:low Should be quite a far way down on the agenda label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api priority:low Should be quite a far way down on the agenda tests Issues with tests
Projects
None yet
Development

No branches or pull requests

1 participant