]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
lifecycle: Fix test_lifecycle_expiration_header_* testcases 500/head
authorSoumya Koduri <skoduri@redhat.com>
Tue, 7 Mar 2023 09:47:47 +0000 (15:17 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 7 Mar 2023 09:47:47 +0000 (15:17 +0530)
Few checks were incorrectly mapped when switched to 'assert'. This
commit fixes the same.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
s3tests_boto3/functional/test_s3.py

index 8e0684482eecc4e7436647d7b8486b3415f243aa..e4c70526d7d337975cedf23a9ff5d290bb317e59 100644 (file)
@@ -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():