NSFS | NC | Add owner_account
to the bucket schema as a required property
#7776
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain the changes
owner_account
to the bucket schema as a required property (it was already added as property in PR NSFS | NC | Allow one or more buckets to use the same dir path #7718.undefined
values in_id
andowner_account
to keep the order the properties when printing the data object, and change the position ofcreation_date
.verify_bucket_owner
to return theaccount_id
(owner_account
is the account id)._id
).test_bucketspace_fs
by adding_id
to the account (that will be used asowner_account
when creating a bucket) and edit one of the test paths to allow it to pass on Mac when running the test locally.Issues: Fixed #7768
sudo node src/cmd/manage_nsfs bucket status --name <bucke-name>
is different if the bucket was created in the manage_nsfs or by s3 command - in the first option we don't have the propertyowner_account
.Testing Instructions:
Manual test:
Unit tests:
For running the unit test with the new tests (or updated tests), please run:
sudo npx jest test_nc_nsfs_bucket_cli.test.js
npx jest test_nc_nsfs_bucket_schema_validation.test.js
sudo node ./node_modules/mocha/bin/mocha src/test/unit_tests/test_bucketspace_fs.js
Doc added/updated
Tests added