forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mock Credentials in AWSPrometheusRemoteWriteExporter Tests (open-tele…
…metry#1755) We are adding more tests to the AWSPrometheusRemoteWriteExporter in this PR. These tests include mocking the credentials and test for negative error cases. In this PR, we refactored `auth.go` so that we can provide mocked credentials to the SigV4 signer and added a test for no credentials. **Testing:** * `auth_test.go` was changed to provide mock credentials * `factory_test.go` was changed to add a comment to warn user's not to set their credentials with environment variables in production code
- Loading branch information
Jason Liu
committed
Dec 10, 2020
1 parent
a84baea
commit 241c509
Showing
3 changed files
with
54 additions
and
26 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
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