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

Function abortMultipleMpus

tests/multipleBackend/multipartUpload.js:322–332  ·  view source on GitHub ↗
(backendsInfo, callback)

Source from the content-addressed store, hash-verified

320}
321
322function abortMultipleMpus(backendsInfo, callback) {
323 async.forEach(backendsInfo, (backend, cb) => {
324 const delParams = getDeleteParams(backend.key, backend.uploadId);
325 multipartDelete(authInfo, delParams, log, err => {
326 cb(err);
327 });
328 }, err => {
329 assert.equal(err, null, `Error aborting MPU: ${err}`);
330 callback();
331 });
332}
333
334describe('Multipart Upload API with AWS Backend', function mpuTestSuite() {
335 this.timeout(60000);

Callers 1

multipartUpload.jsFile · 0.85

Calls 2

getDeleteParamsFunction · 0.85
multipartDeleteFunction · 0.85

Tested by

no test coverage detected