Closed Bento007 closed 6 months ago
Solution 4 with appropriate comments that tells the user to uncomment this code when working on the feature is sufficient. A comment should live near the implementation as well as the tests so the developer has a higher likelyhood of remembering to uncomment the test.
Closing, since @Bento007 noted that solution 4 is sufficient for now. We'll reopen/revisit if necessary.
Describe the bug
In tests/functional/backend/corpora/test_api_key.py, line 23 returns 200 instead of 404. This is because multiple instance of the functional tests are running and they all use the same auth0 test user.
To Reproduce
It is difficult to reproduce but it happens often enough to be a problem. Run functional tests in multiple threads and it will happen eventually. The specific test suite is
TestApiKey
.Expected behavior
Tests running in separated rdev environment should not affect each other. Since all of the rdev environments are using the same auth0 test user something need to be changes to either share it, or eliminated the needs to access the shared resource.
Environment
Possible Solutions:
TestApiKey
in rdev. -(this means less test coverage for rdev. Future development of this area of code will be more difficult.) +(less code coverage for rdev environments for this feature.)