mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Fix AWS credentials test failure when env vars set (#2062)
This commit is contained in:
parent
9c541ee1ce
commit
4bb95a3a29
@ -35,6 +35,10 @@ TEST_F(AwsUtilTests, test_get_credentials) {
|
||||
std::string profile_path = kTestDataPath + "/aws/credentials";
|
||||
setenv(kAwsProfileFileEnvVar, profile_path.c_str(), true);
|
||||
|
||||
// Clear any values for the other AWS env vars
|
||||
unsetenv(kAwsAccessKeyEnvVar);
|
||||
unsetenv(kAwsSecretKeyEnvVar);
|
||||
|
||||
OsqueryAWSCredentialsProviderChain provider;
|
||||
Aws::Auth::AWSCredentials credentials("", "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user