From 7ac92fbd1182364f3015c477a5698eda58a1e4e0 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Tue, 7 Mar 2023 15:17:47 +0530 Subject: [PATCH] lifecycle: Fix test_lifecycle_expiration_header_* testcases Few checks were incorrectly mapped when switched to 'assert'. This commit fixes the same. Signed-off-by: Soumya Koduri (cherry picked from commit 29b0e27e495fca140669f45cd51c7b172f41410a) --- s3tests_boto3/functional/test_s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 8e06844..e4c7052 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -8346,7 +8346,7 @@ def test_lifecycle_expiration_header_tags_head(): # stat the object, check header response = client.head_object(Bucket=bucket_name, Key=key1) assert response['ResponseMetadata']['HTTPStatusCode'] == 200 - assert check_lifecycle_expiration_header(response, datetime.datetime.now(None), 'rule1', 1) + assert check_lifecycle_expiration_header(response, datetime.datetime.now(None), 'rule1', 1) == False @pytest.mark.lifecycle @pytest.mark.lifecycle_expiration @@ -8392,7 +8392,7 @@ def test_lifecycle_expiration_header_and_tags_head(): # stat the object, check header response = client.head_object(Bucket=bucket_name, Key=key1) assert response['ResponseMetadata']['HTTPStatusCode'] == 200 - assert check_lifecycle_expiration_header(response, datetime.datetime.now(None), 'rule1', 1) + assert check_lifecycle_expiration_header(response, datetime.datetime.now(None), 'rule1', 1) == False @pytest.mark.lifecycle def test_lifecycle_set_noncurrent():