From eb643d67da143caaaec1c1b9a4ad720b23488cfd Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Tue, 15 Jul 2025 13:26:42 -0400 Subject: [PATCH] ignore s3 select tests, new aws acconts dont support s3 select --- .../BucketAndObjectOperationTest.cpp | 14 +++++++++++--- .../S3ExpressTest.cpp | 2 +- .../BucketAndObjectOperationTest.cpp | 11 ++++++++++- .../S3ExpressTest.cpp | 2 +- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/tests/aws-cpp-sdk-s3-crt-integration-tests/BucketAndObjectOperationTest.cpp b/tests/aws-cpp-sdk-s3-crt-integration-tests/BucketAndObjectOperationTest.cpp index 7ed1be27c75..ffcda870d5b 100644 --- a/tests/aws-cpp-sdk-s3-crt-integration-tests/BucketAndObjectOperationTest.cpp +++ b/tests/aws-cpp-sdk-s3-crt-integration-tests/BucketAndObjectOperationTest.cpp @@ -11,6 +11,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -50,9 +53,10 @@ #pragma warning(disable: 4127) #endif //_WIN32 -#include -#include -#include +#if defined(_WIN32) +// disable "warning C4702: unreachable code" from GTEST_SKIP on newer MSVS +#pragma warning(disable: 4702) +#endif using namespace Aws; using namespace Aws::Http::Standard; @@ -980,6 +984,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestObjectOperationWithEventStream) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; @@ -1136,6 +1141,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestEventStreamWithLargeFile) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_LARGE_FILE_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; @@ -1212,6 +1218,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestErrorsInXml) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; SelectObjectContentRequest selectObjectContentRequest; selectObjectContentRequest.SetBucket("adskflaklfakl"); selectObjectContentRequest.SetKey(TEST_EVENT_STREAM_OBJ_KEY); @@ -1242,6 +1249,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestErrorsInEventStream) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_ERRORS_IN_EVENT_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; diff --git a/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp b/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp index 9d926db255f..3e288dd462b 100644 --- a/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp +++ b/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp b/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp index 1f13967b7fb..6992f38811d 100644 --- a/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp +++ b/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp @@ -56,6 +56,11 @@ #endif #endif +#if defined(_WIN32) +// disable "warning C4702: unreachable code" from GTEST_SKIP on newer MSVS +#pragma warning(disable: 4702) +#endif + #include @@ -1591,9 +1596,9 @@ namespace DeleteObjectOutcome deleteObjectOutcome = Client->DeleteObject(deleteObjectRequest); AWS_ASSERT_SUCCESS(deleteObjectOutcome); } - TEST_F(BucketAndObjectOperationTest, TestObjectOperationWithEventStream) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; const Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; @@ -1672,6 +1677,7 @@ namespace // This test is to test failed event stream request will not cause crash during retry. TEST_F(BucketAndObjectOperationTest, TestSelectObjectOperationWithEventStreamFailWithRetry) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; const Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; @@ -1747,6 +1753,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestEventStreamWithLargeFile) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; const Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_LARGE_FILE_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; @@ -1823,6 +1830,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestErrorsInXml) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; SelectObjectContentRequest selectObjectContentRequest; selectObjectContentRequest.SetBucket("adskflaklfakl"); selectObjectContentRequest.SetKey(TEST_EVENT_STREAM_OBJ_KEY); @@ -1853,6 +1861,7 @@ namespace TEST_F(BucketAndObjectOperationTest, TestErrorsInEventStream) { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; const Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_ERRORS_IN_EVENT_TEST_BUCKET_NAME.c_str()); SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); CreateBucketRequest createBucketRequest; diff --git a/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp b/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp index d57fe5adc54..7563112a217 100644 --- a/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp +++ b/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +20,6 @@ #include #include #include -#include #include #include #include