feat(storage): add Object Contexts samples and system tests#4276
feat(storage): add Object Contexts samples and system tests#4276thiyaguk09 wants to merge 3 commits intoGoogleCloudPlatform:mainfrom
Conversation
- Add `setObjectContexts.js` to demonstrate CRUD and deletion of contexts. - Add `getObjectContexts.js` to show retrieval of structured metadata. - Add `listObjectsWithContextFilter.js` to demonstrate server-side filtering. - Implement comprehensive system tests in `files.test.js` covering presence, absence (-), and existence (:) filter operators. - Ensure samples use correct 'contexts' field with 'custom' map structure.
There was a problem hiding this comment.
Code Review
This pull request adds new Node.js code samples for Google Cloud Storage to demonstrate retrieving, setting, and listing object contexts, along with a corresponding system test. The review feedback suggests correcting a comment that inaccurately describes a filtering operation and fixing a typographical error.
|
Here is the summary of changes. You are about to add 3 region tags.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
similar comment on this test file as #4272 (comment)
"Test the State, not the String"
Description
setObjectContexts.jsto demonstrate CRUD and deletion of contexts.getObjectContexts.jsto show retrieval of structured metadata.listObjectsWithContextFilter.jsto demonstrate server-side filtering.files.test.jscovering presence, absence (-), and existence (:) filter operators.Checklist
npm test(see Testing)npm run lint(see Style)GoogleCloudPlatform/nodejs-docs-samples. Not a fork.