Skip to content

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

Merged
shirady merged 1 commit into
noobaa:masterfrom
shirady:nsfs-nc-versioning-headers-check
Sep 25, 2024
Merged

NC | NSFS | Versioning | Headers Check in Unit Tests#8402
shirady merged 1 commit into
noobaa:masterfrom
shirady:nsfs-nc-versioning-headers-check

Conversation

@shirady

@shirady shirady commented Sep 24, 2024

Copy link
Copy Markdown
Contributor

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 <57721533+shirady@users.noreply.github.com>
@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
@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