Skip to content

Commit

Permalink
Updates Amazon RDS documentation to correct various descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-cpp-automation committed Dec 27, 2024
1 parent 59bd6ee commit 7b89103
Show file tree
Hide file tree
Showing 25 changed files with 1,040 additions and 990 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.474
1.11.475
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DirectoryServiceDataSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSu
static const char ALLOCATION_TAG[];
};
const char DirectoryServiceDataSmokeTestSuite::ALLOCATION_TAG[] = "DirectoryServiceDataSmokeTest";
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeGroupFailure )
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeUserFailure )
{
Aws::DirectoryServiceData::DirectoryServiceDataClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,13 +41,13 @@ TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeGroupFailure )
auto clientSp = Aws::MakeShared<DirectoryServiceDataClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeGroupRequest input;
DescribeUserRequest input;
input.SetDirectoryId("d-1111111111");
input.SetSAMAccountName("test-group");
auto outcome = clientSp->DescribeGroup(input);
input.SetSAMAccountName("test-user");
auto outcome = clientSp->DescribeUser(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeUserFailure )
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeGroupFailure )
{
Aws::DirectoryServiceData::DirectoryServiceDataClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -56,10 +56,10 @@ TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeUserFailure )
auto clientSp = Aws::MakeShared<DirectoryServiceDataClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeUserRequest input;
DescribeGroupRequest input;
input.SetDirectoryId("d-1111111111");
input.SetSAMAccountName("test-user");
auto outcome = clientSp->DescribeUser(input);
input.SetSAMAccountName("test-group");
auto outcome = clientSp->DescribeGroup(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/docdb/DocDBSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/docdb/model/DescribeDBInstancesRequest.h>
#include <aws/docdb/model/DescribeDBEngineVersionsRequest.h>
#include <aws/docdb/DocDBClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace DocDBSmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class DocDBSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char DocDBSmokeTestSuite::ALLOCATION_TAG[] = "DocDBSmokeTest";
TEST_F(DocDBSmokeTestSuite, DescribeDBInstancesFailure )
TEST_F(DocDBSmokeTestSuite, DescribeDBEngineVersionsSuccess )
{
Aws::DocDB::DocDBClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,12 +41,11 @@ TEST_F(DocDBSmokeTestSuite, DescribeDBInstancesFailure )
auto clientSp = Aws::MakeShared<DocDBClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeDBInstancesRequest input;
input.SetDBInstanceIdentifier("fake-id");
auto outcome = clientSp->DescribeDBInstances(input);
EXPECT_FALSE( outcome.IsSuccess());
DescribeDBEngineVersionsRequest input;
auto outcome = clientSp->DescribeDBEngineVersions(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(DocDBSmokeTestSuite, DescribeDBEngineVersionsSuccess )
TEST_F(DocDBSmokeTestSuite, DescribeDBInstancesFailure )
{
Aws::DocDB::DocDBClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,8 +54,9 @@ TEST_F(DocDBSmokeTestSuite, DescribeDBEngineVersionsSuccess )
auto clientSp = Aws::MakeShared<DocDBClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeDBEngineVersionsRequest input;
auto outcome = clientSp->DescribeDBEngineVersions(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeDBInstancesRequest input;
input.SetDBInstanceIdentifier("fake-id");
auto outcome = clientSp->DescribeDBInstances(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
27 changes: 13 additions & 14 deletions generated/smoke-tests/ec2/EC2SmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/ec2/model/DescribeInstancesRequest.h>
#include <aws/ec2/model/DescribeRegionsRequest.h>
#include <aws/ec2/EC2Client.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace EC2SmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,19 +31,6 @@ class EC2SmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char EC2SmokeTestSuite::ALLOCATION_TAG[] = "EC2SmokeTest";
TEST_F(EC2SmokeTestSuite, DescribeRegionsSuccess )
{
Aws::EC2::EC2ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
clientConfiguration.useFIPS = false;
clientConfiguration.useDualStack = false;
auto clientSp = Aws::MakeShared<EC2Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeRegionsRequest input;
auto outcome = clientSp->DescribeRegions(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(EC2SmokeTestSuite, DescribeInstancesFailure )
{
Aws::EC2::EC2ClientConfiguration clientConfiguration;
Expand All @@ -68,4 +54,17 @@ TEST_F(EC2SmokeTestSuite, DescribeInstancesFailure )
auto outcome = clientSp->DescribeInstances(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(EC2SmokeTestSuite, DescribeRegionsSuccess )
{
Aws::EC2::EC2ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
clientConfiguration.useFIPS = false;
clientConfiguration.useDualStack = false;
auto clientSp = Aws::MakeShared<EC2Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeRegionsRequest input;
auto outcome = clientSp->DescribeRegions(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/kinesis/KinesisSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/kinesis/KinesisClient.h>
#include <aws/kinesis/model/ListStreamsRequest.h>
#include <aws/kinesis/model/DescribeStreamRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace KinesisSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class KinesisSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char KinesisSmokeTestSuite::ALLOCATION_TAG[] = "KinesisSmokeTest";
TEST_F(KinesisSmokeTestSuite, ListStreamsSuccess )
TEST_F(KinesisSmokeTestSuite, DescribeStreamFailure )
{
Aws::Kinesis::KinesisClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(KinesisSmokeTestSuite, ListStreamsSuccess )
auto clientSp = Aws::MakeShared<KinesisClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListStreamsRequest input;
auto outcome = clientSp->ListStreams(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeStreamRequest input;
input.SetStreamName("bogus-stream-name");
auto outcome = clientSp->DescribeStream(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(KinesisSmokeTestSuite, DescribeStreamFailure )
TEST_F(KinesisSmokeTestSuite, ListStreamsSuccess )
{
Aws::Kinesis::KinesisClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(KinesisSmokeTestSuite, DescribeStreamFailure )
auto clientSp = Aws::MakeShared<KinesisClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeStreamRequest input;
input.SetStreamName("bogus-stream-name");
auto outcome = clientSp->DescribeStream(input);
EXPECT_FALSE( outcome.IsSuccess());
ListStreamsRequest input;
auto outcome = clientSp->ListStreams(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/pinpoint/PinpointSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/pinpoint/PinpointClient.h>
#include <aws/pinpoint/model/GetAppsRequest.h>
#include <aws/pinpoint/model/GetAppRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace PinpointSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class PinpointSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char PinpointSmokeTestSuite::ALLOCATION_TAG[] = "PinpointSmokeTest";
TEST_F(PinpointSmokeTestSuite, GetAppsSuccess )
TEST_F(PinpointSmokeTestSuite, GetAppFailure )
{
Aws::Pinpoint::PinpointClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(PinpointSmokeTestSuite, GetAppsSuccess )
auto clientSp = Aws::MakeShared<PinpointClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetAppsRequest input;
auto outcome = clientSp->GetApps(input);
EXPECT_TRUE( outcome.IsSuccess());
GetAppRequest input;
input.SetApplicationId("InvalidApplicationId");
auto outcome = clientSp->GetApp(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(PinpointSmokeTestSuite, GetAppFailure )
TEST_F(PinpointSmokeTestSuite, GetAppsSuccess )
{
Aws::Pinpoint::PinpointClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(PinpointSmokeTestSuite, GetAppFailure )
auto clientSp = Aws::MakeShared<PinpointClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetAppRequest input;
input.SetApplicationId("InvalidApplicationId");
auto outcome = clientSp->GetApp(input);
EXPECT_FALSE( outcome.IsSuccess());
GetAppsRequest input;
auto outcome = clientSp->GetApps(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/rds/RDSSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/rds/model/DescribeDBEngineVersionsRequest.h>
#include <aws/rds/model/DescribeDBInstancesRequest.h>
#include <aws/rds/RDSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace RDSSmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class RDSSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char RDSSmokeTestSuite::ALLOCATION_TAG[] = "RDSSmokeTest";
TEST_F(RDSSmokeTestSuite, DescribeDBInstancesFailure )
TEST_F(RDSSmokeTestSuite, DescribeDBEngineVersionsSuccess )
{
Aws::RDS::RDSClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,12 +41,11 @@ TEST_F(RDSSmokeTestSuite, DescribeDBInstancesFailure )
auto clientSp = Aws::MakeShared<RDSClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeDBInstancesRequest input;
input.SetDBInstanceIdentifier("fake-id");
auto outcome = clientSp->DescribeDBInstances(input);
EXPECT_FALSE( outcome.IsSuccess());
DescribeDBEngineVersionsRequest input;
auto outcome = clientSp->DescribeDBEngineVersions(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(RDSSmokeTestSuite, DescribeDBEngineVersionsSuccess )
TEST_F(RDSSmokeTestSuite, DescribeDBInstancesFailure )
{
Aws::RDS::RDSClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,8 +54,9 @@ TEST_F(RDSSmokeTestSuite, DescribeDBEngineVersionsSuccess )
auto clientSp = Aws::MakeShared<RDSClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeDBEngineVersionsRequest input;
auto outcome = clientSp->DescribeDBEngineVersions(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeDBInstancesRequest input;
input.SetDBInstanceIdentifier("fake-id");
auto outcome = clientSp->DescribeDBInstances(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/route53domains/Route53DomainsSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/route53domains/model/GetDomainDetailRequest.h>
#include <aws/route53domains/Route53DomainsClient.h>
#include <aws/route53domains/model/ListDomainsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Route53DomainsSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class Route53DomainsSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char Route53DomainsSmokeTestSuite::ALLOCATION_TAG[] = "Route53DomainsSmokeTest";
TEST_F(Route53DomainsSmokeTestSuite, ListDomainsSuccess )
TEST_F(Route53DomainsSmokeTestSuite, GetDomainDetailFailure )
{
Aws::Route53Domains::Route53DomainsClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -41,11 +40,12 @@ TEST_F(Route53DomainsSmokeTestSuite, ListDomainsSuccess )
auto clientSp = Aws::MakeShared<Route53DomainsClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListDomainsRequest input;
auto outcome = clientSp->ListDomains(input);
EXPECT_TRUE( outcome.IsSuccess());
GetDomainDetailRequest input;
input.SetDomainName("fake-domain-name");
auto outcome = clientSp->GetDomainDetail(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(Route53DomainsSmokeTestSuite, GetDomainDetailFailure )
TEST_F(Route53DomainsSmokeTestSuite, ListDomainsSuccess )
{
Aws::Route53Domains::Route53DomainsClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -54,9 +54,8 @@ TEST_F(Route53DomainsSmokeTestSuite, GetDomainDetailFailure )
auto clientSp = Aws::MakeShared<Route53DomainsClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetDomainDetailRequest input;
input.SetDomainName("fake-domain-name");
auto outcome = clientSp->GetDomainDetail(input);
EXPECT_FALSE( outcome.IsSuccess());
ListDomainsRequest input;
auto outcome = clientSp->ListDomains(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/secretsmanager/SecretsManagerSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/secretsmanager/model/ListSecretsRequest.h>
#include <aws/secretsmanager/model/DescribeSecretRequest.h>
#include <aws/secretsmanager/SecretsManagerClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace SecretsManagerSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class SecretsManagerSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char SecretsManagerSmokeTestSuite::ALLOCATION_TAG[] = "SecretsManagerSmokeTest";
TEST_F(SecretsManagerSmokeTestSuite, ListSecretsSuccess )
TEST_F(SecretsManagerSmokeTestSuite, DescribeSecretFailure )
{
Aws::SecretsManager::SecretsManagerClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(SecretsManagerSmokeTestSuite, ListSecretsSuccess )
auto clientSp = Aws::MakeShared<SecretsManagerClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListSecretsRequest input;
auto outcome = clientSp->ListSecrets(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeSecretRequest input;
input.SetSecretId("fake-secret-id");
auto outcome = clientSp->DescribeSecret(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(SecretsManagerSmokeTestSuite, DescribeSecretFailure )
TEST_F(SecretsManagerSmokeTestSuite, ListSecretsSuccess )
{
Aws::SecretsManager::SecretsManagerClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(SecretsManagerSmokeTestSuite, DescribeSecretFailure )
auto clientSp = Aws::MakeShared<SecretsManagerClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeSecretRequest input;
input.SetSecretId("fake-secret-id");
auto outcome = clientSp->DescribeSecret(input);
EXPECT_FALSE( outcome.IsSuccess());
ListSecretsRequest input;
auto outcome = clientSp->ListSecrets(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
Loading

0 comments on commit 7b89103

Please sign in to comment.