forked from open-policy-agent/opa
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/rest: refactor AWS credentials provider config validation (op…
…en-policy-agent#4081) * plugins/rest: refactor AWS credentials provider config validation * plugins/rest: cleanup env var handling in tests The TestNew case of rest_test.go had failed when run in isolation, but passed when running all of the packages tests. With these changes to how env vars are handled, it passed both alone and when run with all the other tests. Also migrated the TestWebIdentityCredentialService test to use test.WithTempFS instead of dealing with the files itself. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
- Loading branch information
Showing
3 changed files
with
164 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.