mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 11:51:06 +00:00
Merge pull request #552 from alimaredia/lc-utcnow-fix
replace datetime.now with datetime.utcnow()
This commit is contained in:
commit
b46d16467c
1 changed files with 3 additions and 3 deletions
|
@ -8588,7 +8588,7 @@ def test_lifecycle_expiration_header_put():
|
|||
bucket_name = get_new_bucket()
|
||||
client = get_client()
|
||||
|
||||
now = datetime.datetime.now(None)
|
||||
now = datetime.datetime.utcnow()
|
||||
response = setup_lifecycle_expiration(
|
||||
client, bucket_name, 'rule1', 1, 'days1/')
|
||||
assert check_lifecycle_expiration_header(response, now, 'rule1', 1)
|
||||
|
@ -8600,7 +8600,7 @@ def test_lifecycle_expiration_header_head():
|
|||
bucket_name = get_new_bucket()
|
||||
client = get_client()
|
||||
|
||||
now = datetime.datetime.now(None)
|
||||
now = datetime.datetime.utcnow()
|
||||
response = setup_lifecycle_expiration(
|
||||
client, bucket_name, 'rule1', 1, 'days1/')
|
||||
|
||||
|
@ -8671,7 +8671,7 @@ def test_lifecycle_expiration_header_tags_head():
|
|||
@pytest.mark.lifecycle_expiration
|
||||
@pytest.mark.fails_on_dbstore
|
||||
def test_lifecycle_expiration_header_and_tags_head():
|
||||
now = datetime.datetime.now(None)
|
||||
now = datetime.datetime.utcnow()
|
||||
bucket_name = get_new_bucket()
|
||||
client = get_client()
|
||||
lifecycle={
|
||||
|
|
Loading…
Reference in a new issue