MCPcopy
hub / github.com/scality/cloudserver / createGetAttributesRequest

Function createGetAttributesRequest

tests/unit/api/objectGetAttributes.js:52–66  ·  view source on GitHub ↗
(attributes, options = {})

Source from the content-addressed store, hash-verified

50};
51
52const createGetAttributesRequest = (attributes, options = {}) => {
53 const key = options.objectKey || objectName;
54 return {
55 bucketName,
56 namespace,
57 objectKey: key,
58 headers: {
59 'x-amz-object-attributes': attributes.join(','),
60 ...options.headers,
61 },
62 url: `/${bucketName}/${key}`,
63 query: options.query || {},
64 actionImplicitDenies: false,
65 };
66};
67
68describe('objectGetAttributes API', () => {
69 beforeEach(async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected