-
Notifications
You must be signed in to change notification settings - Fork 672
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
NOISSUE - Add property based testing to users service #2087
Conversation
.github/workflows/api-tests.yml
Outdated
base-url: http://localhost:9002 | ||
checks: all | ||
report: false | ||
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --contrib-unique-data --contrib-openapi-formats-uuid --hypothesis-suppress-health-check=filter_too_much --stateful=links' |
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.
The --contrib-unique-data
option is deprecated and going to be removed in the next major version of Schemathesis. I suggest avoiding it as it leads to unstable tests
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.
@rodneyosodo can you please inspect this and see if we can remove --contrib-unique-data
and what implications it will make (i.e. how we can find a future-proof approach)
d47354e
to
3a8d3d9
Compare
.github/workflows/api-tests.yml
Outdated
base-url: http://localhost:9002 | ||
checks: all | ||
report: false | ||
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --contrib-unique-data --contrib-openapi-formats-uuid --hypothesis-suppress-health-check=filter_too_much --stateful=links' |
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.
@rodneyosodo can you please inspect this and see if we can remove --contrib-unique-data
and what implications it will make (i.e. how we can find a future-proof approach)
9afecd6
to
88932de
Compare
8f20e95
to
64e7f91
Compare
f983000
to
5e139ad
Compare
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.
LGTM
At here in users repository , we are using svcerr, instead of svcerr, does the repoerr will fit there ?
55dc245
to
0f0c948
Compare
Got the below warnings from schemathesis in local and in CI,
|
badfe59
to
58cff82
Compare
This is completely fine. Most of the endpoints schemathesis is probing are not valid hence we get an authorization error because the id is not for a valid entity |
89037a6
to
a3ae2ca
Compare
a3ae2ca
to
1a71b80
Compare
Signed-off-by: Rodney Osodo <[email protected]>
Removed the `--contrib-unique-data` option from API test arguments in `.github/workflows/api-tests.yml` and `Makefile` since it will be deprecated Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
1a71b80
to
5cc92fb
Compare
Signed-off-by: Rodney Osodo <[email protected]>
5cc92fb
to
98af96f
Compare
Signed-off-by: Rodney Osodo <[email protected]>
What type of PR is this?
This is a feature PR as it adds property-based testing to users API. In addition it is a refactor to error handling on the API
What does this do?
Adds schemathesis, property-based testing to users service
Which issue(s) does this PR fix/relate to?
No issue
Have you included tests for your changes?
Yes, I have included tests for my changes.
Did you document any new/modified feature?
No
Notes