red-hat-storage / noobaa-sa-ci

CI for noobaa standalone product
MIT License
0 stars 4 forks source link

Add anonymous access and anonymous account management test coverage #38

Closed sagihirshfeld closed 1 month ago

sagihirshfeld commented 3 months ago

This PR adds tests that cover anonymous requests support for NC-NooBaa:

  1. test_anonymous_account_management covers the functionality of the relevant noobaa-cli operations:

    • noobaa-cli account add --anonymous --uid {uid} --gid {gid}
    • noobaa-cli account add --anonymous --user {user}
    • noobaa-cli account update --anonymous --uid {new_uid} --gid {new_gid}
    • noobaa-cli account update --anonymous --user {user}
    • noobaa-cli account delete --anonymous
    • noobaa-cli account status --anonymous
  2. test_anonymous_access covers accessing an existing bucket via anonymous access, performing the following S3 operations:

    • PutObject
    • ListObjects
    • GetObject
    • DeleteObject
    • DeleteBucket
sagihirshfeld commented 3 months ago

Verified via https://url.corp.redhat.com/6ecb60e

sagihirshfeld commented 2 months ago

Verified again after addressing the review comments at https://url.corp.redhat.com/7c373af

sagihirshfeld commented 2 months ago

Verified after addressing the latest review comments at https://url.corp.redhat.com/12e796c