Skip to content

Commit ea87a3b

Browse files
committed
wipp try
1 parent 2a97dff commit ea87a3b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/functional/sse-kms-migration/beforeMigration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ describe('SSE KMS before migration', () => {
7979
before(async () => {
8080
console.log('Run before migration',
8181
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
82-
const allBuckets = (await helpers.s3.listBuckets()).Buckets.map(b => b.Name);
82+
const listBucketsResponse = await helpers.s3.listBuckets().promise();
83+
const allBuckets = (listBucketsResponse.Buckets || []).map(b => b.Name);
8384
console.log('List buckets:', allBuckets);
8485
await promisify(metadata.setup.bind(metadata))();
8586

tests/functional/sse-kms-migration/cleanup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ describe('SSE KMS Cleanup', () => {
1818
it('Empty and delete buckets for SSE KMS Migration', async () => {
1919
console.log('Run cleanup',
2020
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
21-
const allBuckets = (await helpers.s3.listBuckets()).Buckets.map(b => b.Name);
21+
const listBucketsResponse = await helpers.s3.listBuckets().promise();
22+
const allBuckets = (listBucketsResponse.Buckets || []).map(b => b.Name);
2223
console.log('List buckets:', allBuckets);
2324

2425
await helpers.MD.setup();

0 commit comments

Comments
 (0)