From 340d01819acc8928a0128f8a7e29219830e688ef Mon Sep 17 00:00:00 2001 From: SergeyRyabinin Date: Mon, 29 Jan 2024 20:02:20 +0000 Subject: [PATCH] test: add OperationAborted to the list of erros ignored on bucket creation --- tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp | 3 ++- tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 8c65f60b8df..63a953c8233 100644 --- a/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp +++ b/tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp @@ -68,7 +68,8 @@ namespace { .WithDataRedundancy(DataRedundancy::SingleAvailabilityZone)))); if (!outcome.IsSuccess() && outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::CONFLICT && - outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou") { + (outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou" || + outcome.GetError().GetExceptionName() == "OperationAborted")) { return CreateBucketOutcome(CreateBucketResult()); } diff --git a/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp b/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp index bacf812260f..dea2b0a7b66 100644 --- a/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp +++ b/tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp @@ -68,7 +68,8 @@ namespace { .WithDataRedundancy(DataRedundancy::SingleAvailabilityZone)))); if (!outcome.IsSuccess() && outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::CONFLICT && - outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou") { + (outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou" || + outcome.GetError().GetExceptionName() == "OperationAborted")) { return CreateBucketOutcome(CreateBucketResult()); }