Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Fix wrong assertion of the test: test_buckets_list_ctime - #565

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

cbodley merged 1 commit into
ceph:masterfrom
bobham-bloomberg:FixListBucketsCtimeTest

Conversation

@bobham-bloomberg

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

Copy link
Copy Markdown

[ 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 <[email protected]>
Co-developed-by: Bob Ham <[email protected]>
Signed-off-by: Bob Ham <[email protected]>
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants