Skip to content

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

test_s3: fix attribute access in test_bucket_create_exists#756
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 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.

1 participant