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

Function createTestPutObjectRequest

tests/unit/api/objectPut.js:1281–1287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279 });
1280
1281 const createTestPutObjectRequest = longKey => new DummyRequest({
1282 bucketName,
1283 namespace,
1284 objectKey: longKey,
1285 headers: {},
1286 url: `/${bucketName}/${longKey}`,
1287 }, postBody);
1288
1289 it('should reject object key longer than 915 bytes by default', done => {
1290 const longKey = 'a'.repeat(916);

Callers 1

objectPut.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected