Added tests for the Secrets API in the java client. Also removed the setEnv hack for resetting the API key after rotation. This seems to work in the same class, but the variable is not changed in other classes. This is probably a result of the way Maven Surefire runs tests through the JVM.
Note that in order to get the contract tests to work I had to put a small workaround in the secrets.yml file which is related to this Schemathesis issue.
Checklists
Change log
[x] The CHANGELOG has been updated, or
[ ] This PR does not include user-facing changes and doesn't require a CHANGELOG update
Test coverage
[x] This PR includes new unit and integration tests to go with the code changes, or
[ ] The changes in this PR do not require tests
Documentation
[ ] Docs (e.g. READMEs) were updated in this PR, and/or there is a follow-on issue to update docs, or
[x] This PR does not require updating any documentation
What does this PR do?
Added tests for the Secrets API in the java client. Also removed the
setEnv
hack for resetting the API key after rotation. This seems to work in the same class, but the variable is not changed in other classes. This is probably a result of the way Maven Surefire runs tests through the JVM.Note that in order to get the contract tests to work I had to put a small workaround in the secrets.yml file which is related to this Schemathesis issue.Checklists
Change log
Test coverage
Documentation
README
s) were updated in this PR, and/or there is a follow-on issue to update docs, or