-
Notifications
You must be signed in to change notification settings - Fork 4
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
schema tests #695
base: development
Are you sure you want to change the base?
schema tests #695
Conversation
Good job ya @A-Harby
|
I added the trigger on the PR on the main branch and just left the manual trigger for the test run on every network (to make sure everything is working fine).
That does need a subscription, and running the coding does pretty much the same. |
correct me if I got it wrong, schematest checks the openapi spec file and do all the possible requests to the target servers. isn't it enough to run the test once on the push/pr? if we do need to run it on all the servers can we get the specs for each server running? maybe from https://gridproxy.dev.grid.tf/swagger/doc.json instead of reading it from the codebase |
I did that in 1811cac, the PR should be ready for review. |
code looks good to me, but the test fails due to some needed updates in the schema. we need to take care of this before merge this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Omarabdul3ziz Any schema or API fixes are outside the scope of this PR, so we can merge it (since it's working as expected).
We should create new issues/PRs for the discovered issues.
Description
Add tests for the schema checking server error, response code, content type, response schema, and response headers against the proxy schema itself.
Changes
Add a tests.py file, requirements.txt, and workflow.yml.
Related Issues
#51
Checklist