55
66#include < aws/testing/AwsCppSdkGTestSuite.h>
77#include < aws/testing/AwsTestHelpers.h>
8- #include < aws/core/auth/AWSCredentialsProviderChain .h>
8+ #include < aws/core/auth/SSOCredentialsProvider .h>
99#include < aws/core/client/ClientConfiguration.h>
1010#include < aws/core/client/CoreErrors.h>
1111#include < aws/core/client/RetryStrategy.h>
@@ -201,7 +201,7 @@ namespace
201201 // Enable trace logging
202202 Aws::Utils::Logging::InitializeAWSLogging (
203203 Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>(
204- " test" , Aws::Utils::Logging::LogLevel::Trace));
204+ " test" , Aws::Utils::Logging::LogLevel::Trace, " aws_sdk_ " ));
205205
206206 static std::once_flag flag;
207207 std::call_once (flag, EnsureUniqueBucketNames);
@@ -227,22 +227,21 @@ namespace
227227 config.proxyPort = PROXY_PORT;
228228 }
229229
230- Client = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), config,
230+ auto ssoCredentials = Aws::MakeShared<SSOCredentialsProvider>(ALLOCATION_TAG, " iam-test" );
231+
232+ Client = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG, ssoCredentials, config,
231233 AWSAuthV4Signer::PayloadSigningPolicy::Never /* signPayloads*/ , true /* useVirtualAddressing*/ , Aws::S3::US_EAST_1_REGIONAL_ENDPOINT_OPTION::LEGACY);
232234 config.region = Aws::Region::AWS_GLOBAL;
233- globalClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG,
234- Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), config,
235+ globalClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG, ssoCredentials, config,
235236 AWSAuthV4Signer::PayloadSigningPolicy::Never /* signPayloads*/ , true /* useVirtualAddressing*/ );
236237 config.region = Aws::Region::US_WEST_2;
237238 config.useDualStack = true ;
238- oregonClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG,
239- Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), config,
239+ oregonClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG, ssoCredentials, config,
240240 AWSAuthV4Signer::PayloadSigningPolicy::Never /* signPayloads*/ , true /* useVirtualAddressing*/ );
241241 m_HttpClient = Aws::Http::CreateHttpClient (config);
242242
243243 config.retryStrategy = Aws::MakeShared<RetryFiveTimesRetryStrategy>(ALLOCATION_TAG);
244- retryClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG,
245- Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), config,
244+ retryClient = Aws::MakeShared<S3TestClient>(ALLOCATION_TAG, ssoCredentials, config,
246245 AWSAuthV4Signer::PayloadSigningPolicy::Never /* signPayloads*/ , true /* useVirtualAddressing*/ );
247246 // Using client side monitoring for endpoint override testing.
248247 TestingMonitoringManager::InitTestingMonitoring ();
0 commit comments