From f20fa0b1c873ad4a7f29531a805c0459b85a3ae1 Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Fri, 17 Mar 2023 17:12:59 -0600 Subject: [PATCH] Condensing Successful responses (#2722) --- integration/user_api_bucket_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/user_api_bucket_test.go b/integration/user_api_bucket_test.go index e9ce192036..3cf8fff852 100644 --- a/integration/user_api_bucket_test.go +++ b/integration/user_api_bucket_test.go @@ -167,6 +167,10 @@ func setupBucketForEndpoint(name string, locking, versioning bool, quota, retent return false } if response != nil { + if response.StatusCode >= 200 && response.StatusCode <= 299 { + fmt.Println("setupBucketForEndpoint(): HTTP Status is in the 2xx range") + return true + } if response.StatusCode != expected { assert.Fail(inspectHTTPResponse(response)) return false