fix/restore test_lifecycle_expiration checks 347/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 19 May 2020 12:41:39 +0000 (08:41 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 19 May 2020 12:41:39 +0000 (08:41 -0400)
Commit bf956df71e56bcdae7d41b9789d8e8d775f76007 adding
listobvjectsv2 tests inadvertently changed the v1
test_lifecycle_expiration test, which it had copied to
create a v2 version.  Revert this.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
s3tests_boto3/functional/test_s3.py

index aaf885bead816728b2864244d59a86409982edde..969d28fd51f20a2bb330e0881b46a99b2e22b0d5 100644 (file)
@@ -8938,9 +8938,9 @@ def test_lifecycle_expiration():
     expire3_objects = response['Contents']
 
     eq(len(init_objects), 6)
-    eq(len(expire1_objects), 6)
-    eq(len(keep2_objects), 6)
-    eq(len(expire3_objects), 6)
+    eq(len(expire1_objects), 4)
+    eq(len(keep2_objects), 4)
+    eq(len(expire3_objects), 2)
 
 @attr(resource='bucket')
 @attr(method='put')
@@ -8977,7 +8977,6 @@ def test_lifecyclev2_expiration():
     eq(len(keep2_objects), 4)
     eq(len(expire3_objects), 2)
 
-
 @attr(resource='bucket')
 @attr(method='put')
 @attr(operation='test lifecycle expiration on versining enabled bucket')
@@ -9002,7 +9001,6 @@ def test_lifecycle_expiration_versioning_enabled():
     eq(len(versions), 1)
     eq(len(delete_markers), 1)
 
-
 @attr(resource='bucket')
 @attr(method='put')
 @attr(operation='id too long in lifecycle rule')