]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
boto3_s3tests: add tests for lifecycle expiration header 256/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 14 Feb 2019 00:17:20 +0000 (19:17 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 14 Feb 2019 23:32:33 +0000 (18:32 -0500)
commit2d12e98ce0f3b975e2c861762e68045c22780553
tree644836aacde4d7d70bab271466209861d77e43ff
parenta2c6edff27817ce46411db4f3004e2602925202d
boto3_s3tests: add tests for lifecycle expiration header

The response to a successful PUT or HEAD (or GET) of/on
an object matching any enabled lifecycle expiration rule should
include an x-amz-expiration header for the object.  The
x-amz-expiration header consists of an expiry-date, rule-id tuple
indicating the earliest matching rule and the corresponding
expiration date for the object.

Also, while at it, add test for lifecycle expiration rule with
'Days' : 0, which should both apply and...work.

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