Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to AWS SDK V3 | Use AWS SDK V3 In Unit Tests (namespace_auth, bucketspace, bucketspace versioning) #7461

Merged

Conversation

shirady
Copy link
Contributor

@shirady shirady commented Aug 27, 2023

Explain the changes

Implementation of AWS SDK V3 (without wrapper) in unit tests:

  1. namespace_auth
  2. bucketspace:
    • In AWS SDK v3 they do not deserialize empty arrays to save on memory allocation (for example an empty bucket with listObjects would not have Content as an empty array, deleteObjects with no error would not have an empty Errors array, etc.).
  3. bucketspace versioning

Issues: Fixed #xxx / Gap #xxx

  1. In bucketspace GAP - a test that used upload was not migrated to AWS SDK V3 (and still using AWS SDK V2).

Testing Instructions:

The tests run as a part of the CI.

namespace_auth, bucketspace

  1. make test

bucketspace versioning

  1. make root-perm-test
  • Doc added/updated
  • Tests added

@shirady shirady force-pushed the migrate-aws-sdk-imp-unit-tests-part-2 branch from 872a8a1 to 0982b78 Compare August 29, 2023 15:47
@shirady shirady force-pushed the migrate-aws-sdk-imp-unit-tests-part-2 branch from 0982b78 to ebd5d10 Compare August 30, 2023 07:41
@shirady shirady changed the title Migrating to AWS SDK V3 | Use AWS SDK V3 In Unit Tests (namespace_auth, bucketspace) Migrating to AWS SDK V3 | Use AWS SDK V3 In Unit Tests (namespace_auth, bucketspace, bucketspace versioning) Aug 30, 2023
@shirady shirady self-assigned this Aug 30, 2023
1. namespace_auth
2. bucketspace:
   - In aws sdk v3 they do not deserialize empty arrays to save on memory allocation (for example: an empty bucket with listObjects would not have Content as an empty array, deleteObjects with no error would not have an empty Errors array, etc.).
3. bucketspace versioning

Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
@shirady shirady force-pushed the migrate-aws-sdk-imp-unit-tests-part-2 branch from ebd5d10 to 411fbba Compare September 3, 2023 13:56
@shirady shirady merged commit ef86755 into noobaa:master Sep 3, 2023
8 checks passed
@shirady shirady deleted the migrate-aws-sdk-imp-unit-tests-part-2 branch September 3, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants