Skip to content

Fix wrong assertion of the test: test_buckets_list_ctime#565

Merged
cbodley merged 1 commit intoceph:masterfrom
bobham-bloomberg:FixListBucketsCtimeTest
May 14, 2024
Merged

Fix wrong assertion of the test: test_buckets_list_ctime#565
cbodley merged 1 commit intoceph:masterfrom
bobham-bloomberg:FixListBucketsCtimeTest

Conversation

@bobham-bloomberg
Copy link
Copy Markdown

@bobham-bloomberg bobham-bloomberg commented May 14, 2024

[ This pull request supersedes #437 ]

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.

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>
@cbodley cbodley merged commit 00b9a2a into ceph:master May 14, 2024
@bobham-bloomberg bobham-bloomberg deleted the FixListBucketsCtimeTest branch May 14, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants