Skip to content

qa/s3tests: filter on 'sts_tests' and 'webidentity_tests' - #52216

Merged
cbodley merged 3 commits into
ceph:mainfrom
cbodley:wip-61838
Jul 6, 2023
Merged

cbodley merged 3 commits into
ceph:mainfrom
cbodley:wip-61838

Conversation

@cbodley

@cbodley cbodley commented Jun 27, 2023

Copy link
Copy Markdown
Contributor

qa/tasks/s3tests.py was adding not test_of_sts and not webidentity_test by default, and the rgw/sts suites were adding those attrs back in extra_attrs

when extra_attrs was changed to be additive in #52156, this started causing InvocationError failures

instead of using extra_attrs to control these filters, qa/tasks/s3tests.py now uses the sts_tests and webidentity_tests flags from the sts yaml files to control whether or the not test_of_sts/not webidentity_test attrs are added to the pytest command line

Fixes: https://tracker.ceph.com/issues/61838

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

cbodley added 3 commits June 27, 2023 17:05
qa/tasks/s3tests.py was adding `not test_of_sts` and `not
webidentity_test` by default, and the rgw/sts suites were adding
those attrs back in `extra_attrs`

when `extra_attrs` was changed to be additive, this started causing
InvocationError failures

instead of using `extra_attrs` to control these filters,
qa/tasks/s3tests.py now uses the `sts_tests` and `webidentity_tests`
flags from the sts yaml files to control whether or not the `not
test_of_sts`/`not webidentity_test` attrs are added to the pytest
command line

Fixes: https://tracker.ceph.com/issues/61838

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley requested a review from a team as a code owner June 27, 2023 21:06
@alimaredia

Copy link
Copy Markdown
Contributor

We'll want a full run of the RGW suite just to make sure the changes to s3tests.py don't have any unintended consequences again.

@cbodley

cbodley commented Jul 6, 2023

Copy link
Copy Markdown
Contributor Author

results from https://pulpito.ceph.com/cbodley-2023-06-30_13:14:21-rgw-main-distro-default-smithi/ show that the InvocationError is resolved, but rgw/sts shows two test failures from general test cases that used to be filtered out:

:=================================== FAILURES ===================================
________________________ test_list_buckets_invalid_auth ________________________

    def test_list_buckets_invalid_auth():
        bad_auth_client = get_bad_auth_client()
        e = assert_raises(ClientError, bad_auth_client.list_buckets)
        status, error_code = _get_status_and_error_code(e.response)
        assert status == 403
>       assert error_code == 'InvalidAccessKeyId'
E       AssertionError: assert 'AccessDenied' == 'InvalidAccessKeyId'
E         - InvalidAccessKeyId
E         + AccessDenied

s3tests_boto3/functional/test_s3.py:5211: AssertionError
--------------------------- Captured stdout teardown ---------------------------
Done with cleanup of buckets in tests.
Done with cleanup of buckets in tests.
Done with cleanup of buckets in tests.
__________________________ test_list_buckets_bad_auth __________________________

    def test_list_buckets_bad_auth():
        main_access_key = get_main_aws_access_key()
        bad_auth_client = get_bad_auth_client(aws_access_key_id=main_access_key)
        e = assert_raises(ClientError, bad_auth_client.list_buckets)
        status, error_code = _get_status_and_error_code(e.response)
        assert status == 403
>       assert error_code == 'SignatureDoesNotMatch'
E       AssertionError: assert 'AccessDenied' == 'SignatureDoesNotMatch'
E         - SignatureDoesNotMatch
E         + AccessDenied

s3tests_boto3/functional/test_s3.py:5219: AssertionError
--------------------------- Captured stdout teardown ---------------------------

@pritha-srivastava i think these are real failures, so i've opened https://tracker.ceph.com/issues/61916 to track them. i'll merge this in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants