Skip to content

Commit

Permalink
Restoring custom endpoint functionality for ECR
Browse files Browse the repository at this point in the history
Restoring custom endpoint functionality for ECR Public
  • Loading branch information
aws-sdk-cpp-automation committed Dec 28, 2024
1 parent 101552e commit 59179d5
Show file tree
Hide file tree
Showing 18 changed files with 3,114 additions and 1,288 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.475
1.11.476
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, DescribeUserFailure )
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeGroupFailure )
{
Aws::DirectoryServiceData::DirectoryServiceDataClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,13 +41,13 @@ 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());
}
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeGroupFailure )
TEST_F(DirectoryServiceDataSmokeTestSuite, DescribeUserFailure )
{
Aws::DirectoryServiceData::DirectoryServiceDataClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -56,10 +56,10 @@ 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());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/docdb/DocDBSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#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 @@ -32,7 +31,7 @@ class DocDBSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char DocDBSmokeTestSuite::ALLOCATION_TAG[] = "DocDBSmokeTest";
TEST_F(DocDBSmokeTestSuite, DescribeDBEngineVersionsSuccess )
TEST_F(DocDBSmokeTestSuite, DescribeDBInstancesFailure )
{
Aws::DocDB::DocDBClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ 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());
}
TEST_F(DocDBSmokeTestSuite, DescribeDBInstancesFailure )
TEST_F(DocDBSmokeTestSuite, DescribeDBEngineVersionsSuccess )
{
Aws::DocDB::DocDBClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ 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());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/iam/IAMSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/iam/model/GetUserRequest.h>
#include <aws/iam/IAMClient.h>
#include <aws/iam/model/ListUsersRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace IAMSmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class IAMSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char IAMSmokeTestSuite::ALLOCATION_TAG[] = "IAMSmokeTest";
TEST_F(IAMSmokeTestSuite, GetUserFailure )
TEST_F(IAMSmokeTestSuite, ListUsersSuccess )
{
Aws::IAM::IAMClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -40,12 +41,11 @@ TEST_F(IAMSmokeTestSuite, GetUserFailure )
auto clientSp = Aws::MakeShared<IAMClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetUserRequest input;
input.SetUserName("fake_user");
auto outcome = clientSp->GetUser(input);
EXPECT_FALSE( outcome.IsSuccess());
ListUsersRequest input;
auto outcome = clientSp->ListUsers(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(IAMSmokeTestSuite, ListUsersSuccess )
TEST_F(IAMSmokeTestSuite, GetUserFailure )
{
Aws::IAM::IAMClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -54,8 +54,9 @@ TEST_F(IAMSmokeTestSuite, ListUsersSuccess )
auto clientSp = Aws::MakeShared<IAMClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListUsersRequest input;
auto outcome = clientSp->ListUsers(input);
EXPECT_TRUE( outcome.IsSuccess());
GetUserRequest input;
input.SetUserName("fake_user");
auto outcome = clientSp->GetUser(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/kinesis/KinesisSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#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 @@ -31,7 +32,7 @@ class KinesisSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char KinesisSmokeTestSuite::ALLOCATION_TAG[] = "KinesisSmokeTest";
TEST_F(KinesisSmokeTestSuite, DescribeStreamFailure )
TEST_F(KinesisSmokeTestSuite, ListStreamsSuccess )
{
Aws::Kinesis::KinesisClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,12 +41,11 @@ 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());
}
TEST_F(KinesisSmokeTestSuite, ListStreamsSuccess )
TEST_F(KinesisSmokeTestSuite, DescribeStreamFailure )
{
Aws::Kinesis::KinesisClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,8 +54,9 @@ 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());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/neptune/NeptuneSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/neptune/NeptuneClient.h>
#include <aws/neptune/model/DescribeDBInstancesRequest.h>
#include <aws/neptune/model/DescribeDBEngineVersionsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace NeptuneSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class NeptuneSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char NeptuneSmokeTestSuite::ALLOCATION_TAG[] = "NeptuneSmokeTest";
TEST_F(NeptuneSmokeTestSuite, DescribeDBEngineVersionsSuccess )
TEST_F(NeptuneSmokeTestSuite, DescribeDBInstancesFailure )
{
Aws::Neptune::NeptuneClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(NeptuneSmokeTestSuite, DescribeDBEngineVersionsSuccess )
auto clientSp = Aws::MakeShared<NeptuneClient>(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());
}
TEST_F(NeptuneSmokeTestSuite, DescribeDBInstancesFailure )
TEST_F(NeptuneSmokeTestSuite, DescribeDBEngineVersionsSuccess )
{
Aws::Neptune::NeptuneClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(NeptuneSmokeTestSuite, DescribeDBInstancesFailure )
auto clientSp = Aws::MakeShared<NeptuneClient>(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());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/pinpoint/PinpointSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#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 @@ -31,7 +32,7 @@ class PinpointSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char PinpointSmokeTestSuite::ALLOCATION_TAG[] = "PinpointSmokeTest";
TEST_F(PinpointSmokeTestSuite, GetAppFailure )
TEST_F(PinpointSmokeTestSuite, GetAppsSuccess )
{
Aws::Pinpoint::PinpointClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,12 +41,11 @@ 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());
}
TEST_F(PinpointSmokeTestSuite, GetAppsSuccess )
TEST_F(PinpointSmokeTestSuite, GetAppFailure )
{
Aws::Pinpoint::PinpointClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,8 +54,9 @@ 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());
}
}
19 changes: 10 additions & 9 deletions generated/smoke-tests/route53/Route53SmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/route53/Route53Client.h>
#include <aws/route53/model/GetHostedZoneRequest.h>
#include <aws/route53/model/ListHostedZonesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Route53SmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class Route53SmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char Route53SmokeTestSuite::ALLOCATION_TAG[] = "Route53SmokeTest";
TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
{
Aws::Route53::Route53ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -40,12 +41,11 @@ TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
auto clientSp = Aws::MakeShared<Route53Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetHostedZoneRequest input;
input.SetId("fake-zone");
auto outcome = clientSp->GetHostedZone(input);
EXPECT_FALSE( outcome.IsSuccess());
ListHostedZonesRequest input;
auto outcome = clientSp->ListHostedZones(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
{
Aws::Route53::Route53ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -54,8 +54,9 @@ TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
auto clientSp = Aws::MakeShared<Route53Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListHostedZonesRequest input;
auto outcome = clientSp->ListHostedZones(input);
EXPECT_TRUE( outcome.IsSuccess());
GetHostedZoneRequest input;
input.SetId("fake-zone");
auto outcome = clientSp->GetHostedZone(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
Loading

0 comments on commit 59179d5

Please sign in to comment.