Skip to content

Commit 01c0d57

Browse files
committed
adding tests to run_integration_tests.py
1 parent 9801e27 commit 01c0d57

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

cmake/sdksCommon.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ list(APPEND SDK_TEST_PROJECT_LIST "s3-encryption:tests/aws-cpp-sdk-s3-encryption
111111
list(APPEND SDK_TEST_PROJECT_LIST "s3control:tests/aws-cpp-sdk-s3control-integration-tests")
112112
list(APPEND SDK_TEST_PROJECT_LIST "sns:tests/aws-cpp-sdk-sns-integration-tests")
113113
list(APPEND SDK_TEST_PROJECT_LIST "sqs:tests/aws-cpp-sdk-sqs-integration-tests")
114+
list(APPEND SDK_TEST_PROJECT_LIST "sso:tests/aws-cpp-sdk-sso-integration-tests")
115+
list(APPEND SDK_TEST_PROJECT_LIST "sts:tests/aws-cpp-sdk-sts-integration-tests")
114116
list(APPEND SDK_TEST_PROJECT_LIST "sqs:tests/aws-cpp-sdk-sqs-unit-tests")
115117
list(APPEND SDK_TEST_PROJECT_LIST "transfer:tests/aws-cpp-sdk-transfer-tests")
116118
list(APPEND SDK_TEST_PROJECT_LIST "text-to-speech:tests/aws-cpp-sdk-text-to-speech-tests,tests/aws-cpp-sdk-polly-sample")

src/aws-cpp-sdk-core/source/endpoint/BuiltInParameters.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ namespace Endpoint
9999

100100
void BuiltInParameters::SetParameter(EndpointParameter param)
101101
{
102+
if (param.GetName() == "Region" && !param.GetStrValueNoCheck().empty()) {
103+
if (param.GetStrValueNoCheck().find('@') != Aws::String::npos || param.GetStrValueNoCheck().find('#') != Aws::String::npos) {
104+
AWS_LOGSTREAM_ERROR(ENDPOINT_BUILTIN_LOG_TAG, "Region contains invalid characters: " << param.GetStrValueNoCheck());
105+
return;
106+
}
107+
}
102108
const auto foundIt = std::find_if(m_params.begin(), m_params.end(),
103109
[param](const BuiltInParameters::EndpointParameter& item)
104110
{

tools/scripts/run_integration_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def main():
4444
"aws-cpp-sdk-dynamodb-integration-tests",
4545
"aws-cpp-sdk-sqs-integration-tests",
4646
"aws-cpp-sdk-sqs-unit-tests",
47+
"aws-cpp-sdk-sso-integration-tests",
48+
"aws-cpp-sdk-sts-integration-tests",
4749
"aws-cpp-sdk-s3-integration-tests",
4850
"aws-cpp-sdk-s3-unit-tests",
4951
"aws-cpp-sdk-s3-crt-integration-tests",

0 commit comments

Comments
 (0)