We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Because the tests appear to be checking for a 200 response code from the server, they will pass even if data is bad in test-config.json
200
I think this is because the Python requests library automatically does redirects and a bad Contrast request redirects back to login.
requests
For example, I set a bogus username, api_key, and server_key and all tests in the test suite pass, but never will actually return any meaningful data.
Issue could be resolved by setting all Python requests calls use allow_redirects=False
allow_redirects=False
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Because the tests appear to be checking for a
200
response code from the server, they will pass even if data is bad in test-config.jsonI think this is because the Python
requests
library automatically does redirects and a bad Contrast request redirects back to login.For example, I set a bogus username, api_key, and server_key and all tests in the test suite pass, but never will actually return any meaningful data.
Issue could be resolved by setting all Python requests calls use
allow_redirects=False
The text was updated successfully, but these errors were encountered: