Skip to content

Commit b3c7083

Browse files
committed
pipe down request to sigv4
override request down provider chain used custom env declaration for credential track test
1 parent 4393c28 commit b3c7083

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/aws-cpp-sdk-core-tests/aws/auth/CredentialTrackingTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <aws/testing/mocks/http/MockHttpClient.h>
1010
#include <aws/testing/platform/PlatformTesting.h>
1111
#include <aws/core/auth/AWSCredentialsProvider.h>
12+
#include <aws/core/auth/AWSCredentialsProviderChain.h>
1213
#include <aws/core/client/AWSClient.h>
1314
#include <aws/core/utils/StringUtils.h>
1415

@@ -25,7 +26,7 @@ class CredentialTestingClient : public Aws::Client::AWSClient
2526
explicit CredentialTestingClient(const Aws::Client::ClientConfiguration& configuration)
2627
: AWSClient(configuration,
2728
Aws::MakeShared<Aws::Client::AWSAuthV4Signer>(ALLOCATION_TAG,
28-
Aws::MakeShared<EnvironmentAWSCredentialsProvider>(ALLOCATION_TAG),
29+
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
2930
"service", configuration.region),
3031
Aws::MakeShared<MockAWSErrorMarshaller>(ALLOCATION_TAG))
3132
{

0 commit comments

Comments
 (0)