Skip to content

Commit

Permalink
try to use default credential provider
Browse files Browse the repository at this point in the history
  • Loading branch information
yanw-bq committed Apr 21, 2023
1 parent b824deb commit be7432a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions integration/base_failover_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
static std::string DOWN_STREAM_STR = "DOWNSTREAM";
static std::string UP_STREAM_STR = "UPSTREAM";

static std::string ACCESS_KEY = std::getenv("AWS_ACCESS_KEY_ID");
static std::string SECRET_ACCESS_KEY = std::getenv("AWS_SECRET_ACCESS_KEY");
static std::string SESSION_TOKEN = std::getenv("AWS_SESSION_TOKEN");
static Aws::Auth::AWSCredentials credentials = Aws::Auth::AWSCredentials(Aws::String(ACCESS_KEY),
Aws::String(SECRET_ACCESS_KEY),
Aws::String(SESSION_TOKEN));
static Aws::Client::ClientConfiguration client_config;
static Aws::SDKOptions options;
static std::shared_ptr<Aws::RDS::RDSClient> rds_client;
Expand Down
2 changes: 1 addition & 1 deletion integration/failover_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FailoverIntegrationTest : public BaseFailoverIntegrationTest {

static void SetUpTestSuite() {
Aws::InitAPI(options);
rds_client = std::make_shared<Aws::RDS::RDSClient>(credentials, client_config);
rds_client = std::make_shared<Aws::RDS::RDSClient>(client_config);
}

static void TearDownTestSuite() {
Expand Down
2 changes: 1 addition & 1 deletion integration/failover_performance_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class FailoverPerformanceTest :

static void SetUpTestSuite() {
Aws::InitAPI(options);
rds_client = std::make_shared<Aws::RDS::RDSClient>(credentials, client_config);
rds_client = std::make_shared<Aws::RDS::RDSClient>(client_config);
}

static void TearDownTestSuite() {
Expand Down
2 changes: 1 addition & 1 deletion integration/network_failover_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class NetworkFailoverIntegrationTest : public BaseFailoverIntegrationTest {

static void SetUpTestSuite() {
Aws::InitAPI(options);
rds_client = std::make_shared<Aws::RDS::RDSClient>(credentials, client_config);
rds_client = std::make_shared<Aws::RDS::RDSClient>(client_config);
}

static void TearDownTestSuite() {
Expand Down

0 comments on commit be7432a

Please sign in to comment.