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

test_s3: fix attribute access in test_bucket_create_exists - #756

Open
peterjan wants to merge 1 commit into
ceph:masterfrom
peterjan:fix-bucket-create-exists
Open

peterjan wants to merge 1 commit into
ceph:masterfrom
peterjan:fix-bucket-create-exists

Conversation

@peterjan

Copy link
Copy Markdown

`ClientError` has no `status` or `error_code` attributes, so the assertions in `test_bucket_create_exists` raise `AttributeError` instead of validating the response when the second `create_bucket` call returns the expected error. Use the values already unpacked from `_get_status_and_error_code()` on the line above.

ClientError has no status or error_code attributes; use the values
returned by _get_status_and_error_code() instead.
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.

1 participant