mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-25 01:35:18 -06:00
e8d1b5f490
* 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>