Skip to content

Commit b2b0224

Browse files
committed
fixup post reviews
1 parent ccb9542 commit b2b0224

20 files changed

Lines changed: 56 additions & 53 deletions

File tree

tests/functional/aws-node-sdk/test/multipleBackend/delete/deleteAwsVersioning.js

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,8 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
205205
key, versionId: 'null', resultType: deleteVersion },
206206
err => next(err, awsVerId)),
207207
(awsVerId, next) => {
208-
const wanted = 'NoSuchVersion';
209208
_awsGetAssertDeleted({ key,
210-
versionId: awsVerId, errorCode: wanted }, next);
209+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
211210
},
212211
], done);
213212
});
@@ -242,9 +241,8 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
242241
key, versionId: 'null', resultType: deleteVersion },
243242
err => next(err, awsVerId)),
244243
(awsVerId, next) => {
245-
const wanted = 'NoSuchVersion';
246244
_awsGetAssertDeleted({ key,
247-
versionId: awsVerId, errorCode: wanted }, next);
245+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
248246
},
249247
], done);
250248
});
@@ -262,9 +260,8 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
262260
key, versionId: s3VerId, resultType: deleteVersion },
263261
err => next(err, awsVerId)),
264262
(awsVerId, next) => {
265-
const wanted = 'NoSuchVersion';
266263
_awsGetAssertDeleted({ key,
267-
versionId: awsVerId, errorCode: wanted }, next);
264+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
268265
},
269266
], done);
270267
});
@@ -524,9 +521,8 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
524521
(awsVid, next) => _getAssertDeleted(s3, { key,
525522
errorCode: 'NoSuchKey' }, () => next(null, awsVid)),
526523
(awsVerId, next) => {
527-
const wanted = 'NoSuchVersion';
528524
_awsGetAssertDeleted({ key,
529-
versionId: awsVerId, errorCode: wanted }, next);
525+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
530526
},
531527
], done);
532528
});
@@ -681,9 +677,8 @@ describeSkipIfNotMultiple('AWS backend delete multiple objects w. versioning: '
681677
key, versionId: 'null', resultType: deleteVersion },
682678
err => next(err, awsVerId)),
683679
(awsVerId, next) => {
684-
const wanted = 'NoSuchVersion';
685680
_awsGetAssertDeleted({ key,
686-
versionId: awsVerId, errorCode: wanted }, next);
681+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
687682
},
688683
], done);
689684
});
@@ -699,9 +694,8 @@ describeSkipIfNotMultiple('AWS backend delete multiple objects w. versioning: '
699694
key, versionId: 'null', resultType: deleteVersion },
700695
err => next(err, awsVerId)),
701696
(awsVerId, next) => {
702-
const wanted = 'NoSuchVersion';
703697
_awsGetAssertDeleted({ key,
704-
versionId: awsVerId, errorCode: wanted }, next);
698+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
705699
},
706700
], done);
707701
});
@@ -719,9 +713,8 @@ describeSkipIfNotMultiple('AWS backend delete multiple objects w. versioning: '
719713
key, versionId: s3VerId, resultType: deleteVersion },
720714
err => next(err, awsVerId)),
721715
(awsVerId, next) => {
722-
const wanted = 'NoSuchVersion';
723716
_awsGetAssertDeleted({ key,
724-
versionId: awsVerId, errorCode: wanted }, next);
717+
versionId: awsVerId, errorCode: 'NoSuchVersion' }, next);
725718
},
726719
], done);
727720
});

tests/functional/aws-node-sdk/test/multipleBackend/delete/deleteAzure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const {
1515
getAzureKeys,
1616
azureLocation,
1717
azureLocationMismatch,
18+
describeSkipIfNotMultiple,
1819
} = require('../utils');
1920

2021
const keyObject = 'deleteazure';
@@ -29,7 +30,7 @@ const nonExistingId = process.env.AWS_ON_AIR ?
2930
'MhhyTHhmZ4cxSi4Y9SMe5P7UJAz7HLJ9' :
3031
'3939393939393939393936493939393939393939756e6437';
3132

32-
describe.skip('Multiple backend delete object from Azure',
33+
describeSkipIfNotMultiple('Multiple backend delete object from Azure',
3334
function testSuite() {
3435
this.timeout(250000);
3536
withV4(sigCfg => {

tests/functional/aws-node-sdk/test/multipleBackend/delete/deleteGcp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const {
99
gcpLocation,
1010
gcpLocationMismatch,
1111
genUniqID,
12+
describeSkipIfNotMultiple,
1213
} = require('../utils');
1314

1415
const bucket = `deletegcp${genUniqID()}`;
@@ -19,7 +20,7 @@ const mismatchObject = `mismatchObject-${genUniqID()}`;
1920
const body = Buffer.from('I am a body', 'utf8');
2021
const bigBody = Buffer.alloc(10485760);
2122

22-
describe.skip('Multiple backend delete',
23+
describeSkipIfNotMultiple('Multiple backend delete',
2324
function testSuite() {
2425
this.timeout(120000);
2526
withV4(sigCfg => {

tests/functional/aws-node-sdk/test/multipleBackend/get/getAzure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
getAzureContainerName,
1313
getAzureKeys,
1414
azureLocation,
15+
describeSkipIfNotMultiple,
1516
} = require('../utils');
1617

1718
const azureClient = getAzureClient();
@@ -23,7 +24,7 @@ const normalBody = Buffer.from('I am a body', 'utf8');
2324

2425
const azureTimeout = 10000;
2526

26-
describe.skip('Multiple backend get object from Azure',
27+
describeSkipIfNotMultiple('Multiple backend get object from Azure',
2728
function testSuite() {
2829
this.timeout(30000);
2930
withV4(sigCfg => {

tests/functional/aws-node-sdk/test/multipleBackend/get/getGcp.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const {
88
gcpLocation,
99
gcpLocationMismatch,
1010
genUniqID,
11+
describeSkipIfNotMultiple,
1112
} = require('../utils');
1213

1314
const bucket = `getgcp${genUniqID()}`;
@@ -52,7 +53,7 @@ describe('Multiple backend get object', function testSuite() {
5253
});
5354
});
5455

55-
describe.skip('with objects in GCP', () => {
56+
describeSkipIfNotMultiple('with objects in GCP', () => {
5657
before(() => {
5758
process.stdout.write('Putting object to GCP\n');
5859
return s3.send(new PutObjectCommand({ Bucket: bucket, Key: gcpObject,
@@ -127,7 +128,7 @@ describe('Multiple backend get object', function testSuite() {
127128
});
128129
});
129130

130-
describe.skip('with bucketMatch set to false', () => {
131+
describeSkipIfNotMultiple('with bucketMatch set to false', () => {
131132
beforeEach(done => {
132133
s3.send(new PutObjectCommand({ Bucket: bucket, Key: mismatchObject, Body: body,
133134
Metadata: { 'scal-location-constraint': gcpLocationMismatch } })).then(() => {

tests/functional/aws-node-sdk/test/multipleBackend/initMPU/initMPUAzure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const {
1010
const withV4 = require('../../support/withV4');
1111
const BucketUtility = require('../../../lib/utility/bucket-util');
1212
const { azureLocation, getAzureContainerName,
13-
genUniqID } = require('../utils');
13+
genUniqID, describeSkipIfNotMultiple } = require('../utils');
1414

1515
const keyName = `somekey-${genUniqID()}`;
1616

1717
const azureContainerName = getAzureContainerName(azureLocation);
1818
let s3;
1919
let bucketUtil;
2020

21-
describe.skip('Initiate MPU to AZURE', () => {
21+
describeSkipIfNotMultiple('Initiate MPU to AZURE', () => {
2222
withV4(sigCfg => {
2323
beforeEach(() => {
2424
bucketUtil = new BucketUtility('default', sigCfg);

tests/functional/aws-node-sdk/test/multipleBackend/initMPU/initMPUGcp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
const withV4 = require('../../support/withV4');
1212
const BucketUtility = require('../../../lib/utility/bucket-util');
1313
const { gcpClient, gcpBucketMPU, gcpLocation,
14-
genUniqID } = require('../utils');
14+
genUniqID, describeSkipIfNotMultiple } = require('../utils');
1515
const { createMpuKey } = arsenal.storage.data.external.GcpUtils;
1616

1717
const bucket = `initmpugcp${genUniqID()}`;
@@ -20,7 +20,7 @@ const keyName = `somekey-${genUniqID()}`;
2020
let s3;
2121
let bucketUtil;
2222

23-
describe.skip('Initiate MPU to GCP', () => {
23+
describeSkipIfNotMultiple('Initiate MPU to GCP', () => {
2424
withV4(sigCfg => {
2525
beforeEach(() => {
2626
bucketUtil = new BucketUtility('default', sigCfg);

tests/functional/aws-node-sdk/test/multipleBackend/listParts/azureListParts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { CreateBucketCommand,
88
const withV4 = require('../../support/withV4');
99
const BucketUtility = require('../../../lib/utility/bucket-util');
1010
const { azureLocation, getAzureContainerName,
11-
genUniqID } = require('../utils');
11+
genUniqID, describeSkipIfNotMultiple } = require('../utils');
1212

1313
const azureContainerName = getAzureContainerName(azureLocation);
1414
const firstPartSize = 10;
@@ -19,7 +19,7 @@ const bodySecondPart = Buffer.alloc(secondPartSize);
1919
let bucketUtil;
2020
let s3;
2121

22-
describe.skip('List parts of MPU on Azure data backend',
22+
describeSkipIfNotMultiple('List parts of MPU on Azure data backend',
2323
() => {
2424
withV4(sigCfg => {
2525
beforeEach(function beforeEachFn() {

tests/functional/aws-node-sdk/test/multipleBackend/listParts/listPartsGcp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { CreateBucketCommand,
66
ListPartsCommand } = require('@aws-sdk/client-s3');
77
const withV4 = require('../../support/withV4');
88
const BucketUtility = require('../../../lib/utility/bucket-util');
9-
const { gcpLocation, genUniqID }
9+
const { gcpLocation, genUniqID, describeSkipIfNotMultiple }
1010
= require('../utils');
1111

1212
const bucket = `listpartsgcp${genUniqID()}`;
@@ -18,7 +18,7 @@ const bodySecondPart = Buffer.alloc(secondPartSize);
1818
let bucketUtil;
1919
let s3;
2020

21-
describe.skip('List parts of MPU on GCP data backend', () => {
21+
describeSkipIfNotMultiple('List parts of MPU on GCP data backend', () => {
2222
withV4(sigCfg => {
2323
beforeEach(function beforeEachFn() {
2424
this.currentTest.key = `somekey-${genUniqID()}`;

tests/functional/aws-node-sdk/test/multipleBackend/mpuAbort/abortMPUGcp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212
const withV4 = require('../../support/withV4');
1313
const BucketUtility = require('../../../lib/utility/bucket-util');
1414
const { gcpClient, gcpBucket, gcpBucketMPU,
15-
gcpLocation, uniqName, genUniqID } = require('../utils');
15+
gcpLocation, uniqName, genUniqID, describeSkipIfNotMultiple } = require('../utils');
1616

1717
const keyObject = 'abortgcp';
1818
const bucket = `abortmpugcp${genUniqID()}`;
@@ -38,7 +38,7 @@ function checkMPUList(bucket, key, uploadId, cb) {
3838
});
3939
}
4040

41-
describe.skip('Abort MPU on GCP data backend', function
41+
describeSkipIfNotMultiple('Abort MPU on GCP data backend', function
4242
descrbeFn() {
4343
this.timeout(180000);
4444
withV4(sigCfg => {

0 commit comments

Comments
 (0)