From 651ecd20dd36ba0b2706ca758be35f04c62b290f Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 21 Sep 2023 17:42:58 -0400 Subject: [PATCH] boto2: copy configured_storage_classes() fix from boto3 some boto2 storage class tests are failing because the list returned by configured_storage_classes() included an empty string the boto3 version had an extra line that removes empty values; copy that for boto2 Signed-off-by: Casey Bodley --- s3tests/functional/test_s3.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 0496f3a..9072c80 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -362,6 +362,9 @@ def configured_storage_classes(): if item != 'STANDARD': sc.append(item) + sc = [i for i in sc if i] + print("storage classes configured: " + str(sc)) + return sc def lc_transition(days=None, date=None, storage_class=None):