-
Notifications
You must be signed in to change notification settings - Fork 0
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.include filters fail when base_path is not / #9
Comments
Tried your fix. Doesn't seem to be as simple as that. Will attempt to join the url properly to not have repeat slashes. |
Check if tag v0.7.6-1 fixes this problem, please.
|
Testing for this requires something like #17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today filters like
@schema.include(path_regex="^" + util.args.base_path + "conformance").parametrize()
could fail to work when the OpenAPI document for the service includes a server block with url likehttps://edr.example.com/foo
.The filters will only work when the base_path is
/
.The best fix is not entirely obvious since these hardcoded include paths need to match correctly with how the schemathesis builds up the absolute paths from paths + server urls in the openapi document.
But the above example will work if the filter was changed to:
@schema.include(path_regex="^" + util.args.base_path + "/conformance").parametrize()
The text was updated successfully, but these errors were encountered: