]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
Fix wrong assertion of the test: `test_buckets_list_ctime` 565/head
authorSumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
Tue, 5 Apr 2022 10:25:00 +0000 (04:25 -0600)
committerBob Ham <bham12@bloomberg.net>
Tue, 14 May 2024 11:12:17 +0000 (07:12 -0400)
commite9c5cc29e908ddcd96900dba7d819baf1790b511
tree78e83f04c2a21b1e5b6e2f91c9540e2a8acf5034
parent54c1488a4365afdbe7748eb31809bbb05fa25fb3
Fix wrong assertion of the test: `test_buckets_list_ctime`

TestName:
s3tests_boto3.functional.test_s3:test_buckets_list_ctime

Problem:
The test creates 5 buckets for a user but in an assertion check,
it asserts false if any bucket of the user has CreationTime less
than a day prior to current time.
Due to this reason the test fails if the user has pre-existing
buckets older than a day.

Solution:
Assert only on the CreationTime of buckets that were created with
test execution.

Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
Co-developed-by: Bob Ham <bham12@bloomberg.net>
Signed-off-by: Bob Ham <bham12@bloomberg.net>
s3tests_boto3/functional/test_s3.py