Skip to content

Commit

Permalink
merge useragent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Jan 14, 2025
1 parent 65e9c06 commit 95b2966
Show file tree
Hide file tree
Showing 136 changed files with 6,389 additions and 2,086 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.483
1.11.484
19 changes: 9 additions & 10 deletions generated/smoke-tests/codepipeline/CodePipelineSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <aws/testing/AwsTestHelpers.h>
#include <aws/codepipeline/CodePipelineClient.h>
#include <aws/codepipeline/model/GetPipelineRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codepipeline/model/ListPipelinesRequest.h>

namespace CodePipelineSmokeTest{
Expand All @@ -32,7 +31,7 @@ class CodePipelineSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char CodePipelineSmokeTestSuite::ALLOCATION_TAG[] = "CodePipelineSmokeTest";
TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
{
Aws::CodePipeline::CodePipelineClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
auto clientSp = Aws::MakeShared<CodePipelineClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListPipelinesRequest input;
auto outcome = clientSp->ListPipelines(input);
EXPECT_TRUE( outcome.IsSuccess());
GetPipelineRequest input;
input.SetName("fake-pipeline");
auto outcome = clientSp->GetPipeline(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
{
Aws::CodePipeline::CodePipelineClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
auto clientSp = Aws::MakeShared<CodePipelineClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetPipelineRequest input;
input.SetName("fake-pipeline");
auto outcome = clientSp->GetPipeline(input);
EXPECT_FALSE( outcome.IsSuccess());
ListPipelinesRequest input;
auto outcome = clientSp->ListPipelines(input);
EXPECT_TRUE( 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());
}
}
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/ecr/ECRSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/ecr/model/ListImagesRequest.h>
#include <aws/ecr/model/DescribeRepositoriesRequest.h>
#include <aws/ecr/ECRClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace ECRSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class ECRSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char ECRSmokeTestSuite::ALLOCATION_TAG[] = "ECRSmokeTest";
TEST_F(ECRSmokeTestSuite, DescribeRepositoriesSuccess )
TEST_F(ECRSmokeTestSuite, ListImagesFailure )
{
Aws::ECR::ECRClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(ECRSmokeTestSuite, DescribeRepositoriesSuccess )
auto clientSp = Aws::MakeShared<ECRClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeRepositoriesRequest input;
auto outcome = clientSp->DescribeRepositories(input);
EXPECT_TRUE( outcome.IsSuccess());
ListImagesRequest input;
input.SetRepositoryName("not-a-real-repository");
auto outcome = clientSp->ListImages(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(ECRSmokeTestSuite, ListImagesFailure )
TEST_F(ECRSmokeTestSuite, DescribeRepositoriesSuccess )
{
Aws::ECR::ECRClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(ECRSmokeTestSuite, ListImagesFailure )
auto clientSp = Aws::MakeShared<ECRClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListImagesRequest input;
input.SetRepositoryName("not-a-real-repository");
auto outcome = clientSp->ListImages(input);
EXPECT_FALSE( outcome.IsSuccess());
DescribeRepositoriesRequest input;
auto outcome = clientSp->DescribeRepositories(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/elasticmapreduce/EMRSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/elasticmapreduce/model/DescribeClusterRequest.h>
#include <aws/elasticmapreduce/model/ListClustersRequest.h>
#include <aws/elasticmapreduce/EMRClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace EMRSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class EMRSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char EMRSmokeTestSuite::ALLOCATION_TAG[] = "EMRSmokeTest";
TEST_F(EMRSmokeTestSuite, ListClustersSuccess )
TEST_F(EMRSmokeTestSuite, DescribeClusterFailure )
{
Aws::EMR::EMRClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(EMRSmokeTestSuite, ListClustersSuccess )
auto clientSp = Aws::MakeShared<EMRClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListClustersRequest input;
auto outcome = clientSp->ListClusters(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeClusterRequest input;
input.SetClusterId("fake_cluster");
auto outcome = clientSp->DescribeCluster(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(EMRSmokeTestSuite, DescribeClusterFailure )
TEST_F(EMRSmokeTestSuite, ListClustersSuccess )
{
Aws::EMR::EMRClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(EMRSmokeTestSuite, DescribeClusterFailure )
auto clientSp = Aws::MakeShared<EMRClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeClusterRequest input;
input.SetClusterId("fake_cluster");
auto outcome = clientSp->DescribeCluster(input);
EXPECT_FALSE( outcome.IsSuccess());
ListClustersRequest input;
auto outcome = clientSp->ListClusters(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/eventbridge/EventBridgeSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/eventbridge/EventBridgeClient.h>
#include <aws/eventbridge/model/ListRulesRequest.h>
#include <aws/eventbridge/model/DescribeRuleRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace EventBridgeSmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class EventBridgeSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char EventBridgeSmokeTestSuite::ALLOCATION_TAG[] = "EventBridgeSmokeTest";
TEST_F(EventBridgeSmokeTestSuite, ListRulesSuccess )
TEST_F(EventBridgeSmokeTestSuite, DescribeRuleFailure )
{
Aws::EventBridge::EventBridgeClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -41,11 +40,12 @@ TEST_F(EventBridgeSmokeTestSuite, ListRulesSuccess )
auto clientSp = Aws::MakeShared<EventBridgeClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListRulesRequest input;
auto outcome = clientSp->ListRules(input);
EXPECT_TRUE( outcome.IsSuccess());
DescribeRuleRequest input;
input.SetName("fake-rule");
auto outcome = clientSp->DescribeRule(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(EventBridgeSmokeTestSuite, DescribeRuleFailure )
TEST_F(EventBridgeSmokeTestSuite, ListRulesSuccess )
{
Aws::EventBridge::EventBridgeClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,9 +54,8 @@ TEST_F(EventBridgeSmokeTestSuite, DescribeRuleFailure )
auto clientSp = Aws::MakeShared<EventBridgeClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeRuleRequest input;
input.SetName("fake-rule");
auto outcome = clientSp->DescribeRule(input);
EXPECT_FALSE( outcome.IsSuccess());
ListRulesRequest input;
auto outcome = clientSp->ListRules(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
21 changes: 11 additions & 10 deletions generated/smoke-tests/logs/CloudWatchLogsSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/logs/model/DescribeLogGroupsRequest.h>
#include <aws/logs/model/GetLogEventsRequest.h>
#include <aws/logs/CloudWatchLogsClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace CloudWatchLogsSmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class CloudWatchLogsSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char CloudWatchLogsSmokeTestSuite::ALLOCATION_TAG[] = "CloudWatchLogsSmokeTest";
TEST_F(CloudWatchLogsSmokeTestSuite, GetLogEventsFailure )
TEST_F(CloudWatchLogsSmokeTestSuite, DescribeLogGroupsSuccess )
{
Aws::CloudWatchLogs::CloudWatchLogsClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,13 +41,11 @@ TEST_F(CloudWatchLogsSmokeTestSuite, GetLogEventsFailure )
auto clientSp = Aws::MakeShared<CloudWatchLogsClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetLogEventsRequest input;
input.SetLogGroupName("fakegroup");
input.SetLogStreamName("fakestream");
auto outcome = clientSp->GetLogEvents(input);
EXPECT_FALSE( outcome.IsSuccess());
DescribeLogGroupsRequest input;
auto outcome = clientSp->DescribeLogGroups(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(CloudWatchLogsSmokeTestSuite, DescribeLogGroupsSuccess )
TEST_F(CloudWatchLogsSmokeTestSuite, GetLogEventsFailure )
{
Aws::CloudWatchLogs::CloudWatchLogsClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -55,8 +54,10 @@ TEST_F(CloudWatchLogsSmokeTestSuite, DescribeLogGroupsSuccess )
auto clientSp = Aws::MakeShared<CloudWatchLogsClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

DescribeLogGroupsRequest input;
auto outcome = clientSp->DescribeLogGroups(input);
EXPECT_TRUE( outcome.IsSuccess());
GetLogEventsRequest input;
input.SetLogGroupName("fakegroup");
input.SetLogStreamName("fakestream");
auto outcome = clientSp->GetLogEvents(input);
EXPECT_FALSE( 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());
}
}
Loading

0 comments on commit 95b2966

Please sign in to comment.