Skip to content

NC | NSFS | Versioning | Headers Check in Unit Tests #8402

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

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

shirady
Copy link
Contributor

@shirady shirady commented Sep 24, 2024

Explain the changes

  1. In test_bucketspace_versioning.js in the object tagging tests
  1. In test_bucketspace_versioning.js add headers check, as was manually tested in PR NC | NSFS | Versioning | Fix Bug | Return 405 for Get/Head Specific Delete-Marker #8338 in the following tests:
  • head object, with version enabled, version id specified delete marker - should throw error with code 405
  • get object, with version enabled, version id specified delete marker - should throw error with code 405

Issues:

  1. None

Testing Instructions:

  1. Please run: sudo NC_CORETEST=true node ./node_modules/mocha/bin/mocha ./src/test/unit_tests/test_bucketspace_versioning.js
  • Doc added/updated
  • Tests added

@shirady shirady force-pushed the nsfs-nc-versioning-headers-check branch 2 times, most recently from 8b407ef to d08b89b Compare September 24, 2024 12:17
@shirady shirady self-assigned this Sep 24, 2024
1. In test_bucketspace_versioning.js in the object tagging tests
  - Add Header check related to HeadObject with tagging, as was manually tested in PR NC | NSFS | Fix Bug | Head Object on a Tagged Object Does Not Return x-amz-tagging-count Header noobaa#8357.
  - Change the bucket from suspended_bucket_name to bucket_name (the bucket that we use with versioning Enabled).
2. In test_bucketspace_versioning.js add headers check, as was manually tested in PR NC | NSFS | Versioning | Fix Bug | Return 405 for Get/Head Specific Delete-Marker noobaa#8338 in the following tests:
  - head object, with version enabled, version id specified delete marker - should throw error with code 405
  - get object, with version enabled, version id specified delete marker - should throw error with code 405

Signed-off-by: shirady <[email protected]>
@shirady shirady force-pushed the nsfs-nc-versioning-headers-check branch from d08b89b to 229a01e Compare September 25, 2024 12:41
@shirady shirady merged commit 8d71b8f into noobaa:master Sep 25, 2024
10 checks passed
@shirady shirady deleted the nsfs-nc-versioning-headers-check branch September 25, 2024 13:38
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.

2 participants