-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,920 changed files
with
518,107 additions
and
31,115 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.455 | ||
1.11.479 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-crt-cpp
updated
27 files
+1 −1 | .clang-tidy | |
+146 −42 | .github/workflows/ci.yml | |
+1 −1 | .github/workflows/docs.yml | |
+1 −1 | .github/workflows/release.yml | |
+13 −3 | CMakeLists.txt | |
+1 −1 | VERSION | |
+1 −1 | crt/aws-c-cal | |
+1 −1 | crt/aws-c-common | |
+1 −1 | crt/aws-c-http | |
+1 −1 | crt/aws-c-io | |
+1 −1 | crt/aws-c-s3 | |
+1 −1 | crt/aws-c-sdkutils | |
+1 −1 | crt/aws-checksums | |
+1 −1 | crt/aws-lc | |
+1 −1 | crt/s2n | |
+1 −0 | include/aws/crt/Variant.h | |
+2 −0 | include/aws/crt/mqtt/Mqtt5Client.h | |
+1 −1 | include/aws/crt/mqtt/MqttConnection.h | |
+2 −0 | include/aws/crt/mqtt/private/Mqtt5ClientCore.h | |
+1 −1 | include/aws/crt/mqtt/private/MqttConnectionCore.h | |
+550 −0 | include/aws/iot/MqttRequestResponseClient.h | |
+508 −0 | source/iot/MqttRequestResponseClient.cpp | |
+5 −0 | source/mqtt/Mqtt5Client.cpp | |
+1 −1 | source/mqtt/MqttConnection.cpp | |
+1 −1 | source/mqtt/MqttConnectionCore.cpp | |
+32 −0 | tests/CMakeLists.txt | |
+1,099 −0 | tests/MqttRequestResponse.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
#include <aws/core/utils/memory/AWSMemory.h> | ||
#include <aws/core/client/ClientConfiguration.h> | ||
#include <aws/core/client/CoreErrors.h> | ||
#include <aws/core/utils/UnreferencedParam.h> | ||
#include <utility> | ||
#include <aws/core/auth/AWSCredentialsProviderChain.h> | ||
#include <aws/core/http/HttpTypes.h> | ||
#include <aws/core/client/AsyncCallerContext.h> | ||
#include <aws/core/utils/Outcome.h> | ||
#include <aws/core/utils/logging/LogMacros.h> | ||
#include <algorithm> | ||
#include <aws/testing/AwsCppSdkGTestSuite.h> | ||
#include <aws/testing/AwsTestHelpers.h> | ||
#include <aws/acm/model/ListCertificatesRequest.h> | ||
#include <aws/acm/ACMClient.h> | ||
#include <aws/acm/model/GetCertificateRequest.h> | ||
|
||
namespace ACMSmokeTest{ | ||
using namespace Aws::Auth; | ||
using namespace Aws::Http; | ||
using namespace Aws::Client; | ||
|
||
using namespace Aws::ACM; | ||
using namespace Aws::ACM::Model; | ||
class ACMSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite { | ||
public: | ||
static const char ALLOCATION_TAG[]; | ||
}; | ||
const char ACMSmokeTestSuite::ALLOCATION_TAG[] = "ACMSmokeTest"; | ||
TEST_F(ACMSmokeTestSuite, GetCertificateFailure ) | ||
{ | ||
Aws::ACM::ACMClientConfiguration clientConfiguration; | ||
clientConfiguration.region = "us-west-2"; | ||
clientConfiguration.useFIPS = false; | ||
clientConfiguration.useDualStack = false; | ||
auto clientSp = Aws::MakeShared<ACMClient>(ALLOCATION_TAG, clientConfiguration); | ||
//populate input params | ||
|
||
GetCertificateRequest input; | ||
input.SetCertificateArn("arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012"); | ||
auto outcome = clientSp->GetCertificate(input); | ||
EXPECT_FALSE( outcome.IsSuccess()); | ||
} | ||
TEST_F(ACMSmokeTestSuite, ListCertificatesSuccess ) | ||
{ | ||
Aws::ACM::ACMClientConfiguration clientConfiguration; | ||
clientConfiguration.region = "us-west-2"; | ||
clientConfiguration.useFIPS = false; | ||
clientConfiguration.useDualStack = false; | ||
auto clientSp = Aws::MakeShared<ACMClient>(ALLOCATION_TAG, clientConfiguration); | ||
//populate input params | ||
|
||
ListCertificatesRequest input; | ||
auto outcome = clientSp->ListCertificates(input); | ||
EXPECT_TRUE( outcome.IsSuccess()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
add_project(acm-smoke-tests | ||
"Tests for the AWS ACM C++ SDK" | ||
testing-resources | ||
aws-cpp-sdk-acm | ||
aws-cpp-sdk-core | ||
) | ||
file(GLOB AWS_ACM_GENERATED_SMOKE_TEST_SRC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../RunTests.cpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" | ||
) | ||
if(MSVC AND BUILD_SHARED_LIBS) | ||
add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) | ||
endif() | ||
|
||
if (CMAKE_CROSSCOMPILING) | ||
set(AUTORUN_UNIT_TESTS OFF) | ||
endif() | ||
|
||
if (AUTORUN_UNIT_TESTS) | ||
enable_testing() | ||
endif() | ||
|
||
if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) | ||
add_library(${PROJECT_NAME} "${AWS_ACM_GENERATED_SMOKE_TEST_SRC}") | ||
else() | ||
add_executable(${PROJECT_NAME} "${AWS_ACM_GENERATED_SMOKE_TEST_SRC}") | ||
endif() | ||
|
||
set_compiler_flags(${PROJECT_NAME}) | ||
set_compiler_warnings(${PROJECT_NAME}) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/../../src/aws-cpp-sdk-acm/include) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
${PROJECT_LIBS}) | ||
|
||
if(NOT CMAKE_CROSSCOMPILING) | ||
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
#include <aws/core/utils/memory/AWSMemory.h> | ||
#include <aws/core/client/ClientConfiguration.h> | ||
#include <aws/core/client/CoreErrors.h> | ||
#include <aws/core/utils/UnreferencedParam.h> | ||
#include <utility> | ||
#include <aws/core/auth/AWSCredentialsProviderChain.h> | ||
#include <aws/core/http/HttpTypes.h> | ||
#include <aws/core/client/AsyncCallerContext.h> | ||
#include <aws/core/utils/Outcome.h> | ||
#include <aws/core/utils/logging/LogMacros.h> | ||
#include <algorithm> | ||
#include <aws/testing/AwsCppSdkGTestSuite.h> | ||
#include <aws/testing/AwsTestHelpers.h> | ||
#include <aws/apigateway/model/GetDomainNamesRequest.h> | ||
#include <aws/apigateway/APIGatewayClient.h> | ||
|
||
namespace APIGatewaySmokeTest{ | ||
using namespace Aws::Auth; | ||
using namespace Aws::Http; | ||
using namespace Aws::Client; | ||
|
||
using namespace Aws::APIGateway; | ||
using namespace Aws::APIGateway::Model; | ||
class APIGatewaySmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite { | ||
public: | ||
static const char ALLOCATION_TAG[]; | ||
}; | ||
const char APIGatewaySmokeTestSuite::ALLOCATION_TAG[] = "APIGatewaySmokeTest"; | ||
TEST_F(APIGatewaySmokeTestSuite, GetDomainNamesSuccess ) | ||
{ | ||
Aws::APIGateway::APIGatewayClientConfiguration clientConfiguration; | ||
clientConfiguration.region = "us-west-2"; | ||
clientConfiguration.useFIPS = false; | ||
clientConfiguration.useDualStack = false; | ||
auto clientSp = Aws::MakeShared<APIGatewayClient>(ALLOCATION_TAG, clientConfiguration); | ||
//populate input params | ||
|
||
GetDomainNamesRequest input; | ||
auto outcome = clientSp->GetDomainNames(input); | ||
EXPECT_TRUE( outcome.IsSuccess()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
add_project(apigateway-smoke-tests | ||
"Tests for the AWS APIGATEWAY C++ SDK" | ||
testing-resources | ||
aws-cpp-sdk-apigateway | ||
aws-cpp-sdk-core | ||
) | ||
file(GLOB AWS_APIGATEWAY_GENERATED_SMOKE_TEST_SRC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../RunTests.cpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" | ||
) | ||
if(MSVC AND BUILD_SHARED_LIBS) | ||
add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) | ||
endif() | ||
|
||
if (CMAKE_CROSSCOMPILING) | ||
set(AUTORUN_UNIT_TESTS OFF) | ||
endif() | ||
|
||
if (AUTORUN_UNIT_TESTS) | ||
enable_testing() | ||
endif() | ||
|
||
if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) | ||
add_library(${PROJECT_NAME} "${AWS_APIGATEWAY_GENERATED_SMOKE_TEST_SRC}") | ||
else() | ||
add_executable(${PROJECT_NAME} "${AWS_APIGATEWAY_GENERATED_SMOKE_TEST_SRC}") | ||
endif() | ||
|
||
set_compiler_flags(${PROJECT_NAME}) | ||
set_compiler_warnings(${PROJECT_NAME}) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/../../src/aws-cpp-sdk-apigateway/include) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
${PROJECT_LIBS}) | ||
|
||
if(NOT CMAKE_CROSSCOMPILING) | ||
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) | ||
endif() | ||
|
47 changes: 47 additions & 0 deletions
47
generated/smoke-tests/application-autoscaling/ApplicationAutoScalingSmokeTests.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
#include <aws/core/utils/memory/AWSMemory.h> | ||
#include <aws/core/client/ClientConfiguration.h> | ||
#include <aws/core/client/CoreErrors.h> | ||
#include <aws/core/utils/UnreferencedParam.h> | ||
#include <utility> | ||
#include <aws/core/auth/AWSCredentialsProviderChain.h> | ||
#include <aws/core/http/HttpTypes.h> | ||
#include <aws/core/client/AsyncCallerContext.h> | ||
#include <aws/core/utils/Outcome.h> | ||
#include <aws/core/utils/logging/LogMacros.h> | ||
#include <algorithm> | ||
#include <aws/testing/AwsCppSdkGTestSuite.h> | ||
#include <aws/testing/AwsTestHelpers.h> | ||
#include <aws/application-autoscaling/model/DescribeScalableTargetsRequest.h> | ||
#include <aws/application-autoscaling/ApplicationAutoScalingClient.h> | ||
|
||
namespace ApplicationAutoScalingSmokeTest{ | ||
using namespace Aws::Auth; | ||
using namespace Aws::Http; | ||
using namespace Aws::Client; | ||
|
||
using namespace Aws::ApplicationAutoScaling; | ||
using namespace Aws::ApplicationAutoScaling::Model; | ||
class ApplicationAutoScalingSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite { | ||
public: | ||
static const char ALLOCATION_TAG[]; | ||
}; | ||
const char ApplicationAutoScalingSmokeTestSuite::ALLOCATION_TAG[] = "ApplicationAutoScalingSmokeTest"; | ||
TEST_F(ApplicationAutoScalingSmokeTestSuite, DescribeScalableTargetsSuccess ) | ||
{ | ||
Aws::ApplicationAutoScaling::ApplicationAutoScalingClientConfiguration clientConfiguration; | ||
clientConfiguration.region = "us-west-2"; | ||
clientConfiguration.useFIPS = false; | ||
clientConfiguration.useDualStack = false; | ||
auto clientSp = Aws::MakeShared<ApplicationAutoScalingClient>(ALLOCATION_TAG, clientConfiguration); | ||
//populate input params | ||
|
||
DescribeScalableTargetsRequest input; | ||
input.SetServiceNamespace({ServiceNamespace::ec2}); | ||
auto outcome = clientSp->DescribeScalableTargets(input); | ||
EXPECT_TRUE( outcome.IsSuccess()); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
generated/smoke-tests/application-autoscaling/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
add_project(application-autoscaling-smoke-tests | ||
"Tests for the AWS APPLICATION-AUTOSCALING C++ SDK" | ||
testing-resources | ||
aws-cpp-sdk-application-autoscaling | ||
aws-cpp-sdk-core | ||
) | ||
file(GLOB AWS_APPLICATION-AUTOSCALING_GENERATED_SMOKE_TEST_SRC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../RunTests.cpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" | ||
) | ||
if(MSVC AND BUILD_SHARED_LIBS) | ||
add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) | ||
endif() | ||
|
||
if (CMAKE_CROSSCOMPILING) | ||
set(AUTORUN_UNIT_TESTS OFF) | ||
endif() | ||
|
||
if (AUTORUN_UNIT_TESTS) | ||
enable_testing() | ||
endif() | ||
|
||
if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) | ||
add_library(${PROJECT_NAME} "${AWS_APPLICATION-AUTOSCALING_GENERATED_SMOKE_TEST_SRC}") | ||
else() | ||
add_executable(${PROJECT_NAME} "${AWS_APPLICATION-AUTOSCALING_GENERATED_SMOKE_TEST_SRC}") | ||
endif() | ||
|
||
set_compiler_flags(${PROJECT_NAME}) | ||
set_compiler_warnings(${PROJECT_NAME}) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/../../src/aws-cpp-sdk-application-autoscaling/include) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
${PROJECT_LIBS}) | ||
|
||
if(NOT CMAKE_CROSSCOMPILING) | ||
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) | ||
endif() | ||
|
Oops, something went wrong.