File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tests/aws-cpp-sdk-ec2-integration-tests Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ TEST_F(EC2DualStackTests, TestDualStackMocked)
4343 goodResponse->GetResponseBody () << goodReply;
4444 mockHttpClient->AddResponseToReturn (goodResponse);
4545
46- Aws::Client::ClientConfiguration clientConfig (" default" , true );
46+ Aws::Client::ClientConfigurationInitValues initValues;
47+ initValues.shouldDisableIMDS = true ;
48+ Aws::Client::ClientConfiguration clientConfig (initValues);
49+
4750 clientConfig.region = " us-east-1" ;
4851 clientConfig.useDualStack = true ;
4952
@@ -69,7 +72,10 @@ TEST_F(EC2DualStackTests, TestDualStackMocked)
6972
7073TEST_F (EC2DualStackTests, TestDualStackEndpoint)
7174{
72- Aws::Client::ClientConfiguration clientConfig (" default" , true );
75+ Aws::Client::ClientConfigurationInitValues initValues;
76+ initValues.shouldDisableIMDS = true ;
77+ Aws::Client::ClientConfiguration clientConfig (initValues);
78+
7379 clientConfig.region = " us-east-1" ;
7480 clientConfig.useDualStack = true ;
7581
You can’t perform that action at this time.
0 commit comments