cyberark / conjur-openapi-spec

OpenAPI v3 specification for Conjur / DAP v10+
https://conjur.org
Apache License 2.0
11 stars 2 forks source link

Added Secrets API tests for Java client #185

Closed telday closed 3 years ago

telday commented 3 years ago

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