Skip to content

Commit d15c9f4

Browse files
display creds
1 parent 2765b7c commit d15c9f4

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ describe('SSE KMS arnPrefix', () => {
7171
};
7272

7373
before('setup', async () => {
74+
console.log('Run arnPrefix',
75+
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
76+
const allBuckets = (await helpers.s3.listBuckets().promise()).Buckets.map(b => b.Name);
77+
console.log('List buckets:', allBuckets);
7478
void await helpers.MD.setup();
7579
copyKmsKey = (await helpers.createKmsKey(log)).masterKeyArn;
7680
try {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ describe('SSE KMS before migration', () => {
7777
};
7878

7979
before(async () => {
80+
console.log('Run before migration',
81+
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
82+
const allBuckets = (await helpers.s3.listBuckets().promise()).Buckets.map(b => b.Name);
83+
console.log('List buckets:', allBuckets);
8084
void await promisify(metadata.setup.bind(metadata))();
8185

8286
// init copy bucket

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ describe('SSE KMS Cleanup', () => {
1818
const mpuCopyBkt = 'enc-bkt-mpu-copy';
1919

2020
it('Empty and delete buckets for SSE KMS Migration', async () => {
21+
console.log('Run cleanup',
22+
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
23+
const allBuckets = (await helpers.s3.listBuckets().promise()).Buckets.map(b => b.Name);
24+
console.log('List buckets:', allBuckets);
25+
2126
void await helpers.MD.setup();
2227

2328
try {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function getKey(key) {
1515
return config.kmsHideScalityArn ? getKeyIdFromArn(key) : key;
1616
}
1717

18-
const credsProfile = 'vault';
18+
// for Integration use default profile, in cloudserver use vault profile
19+
const credsProfile = process.env.S3_END_TO_END === 'true' ? 'default' : 'vault';
1920
const s3config = getConfig(credsProfile, { signatureVersion: 'v4' });
2021
const s3 = new S3(s3config);
2122
const bucketUtil = new BucketUtility(credsProfile);
@@ -100,6 +101,7 @@ async function cleanup(Bucket) {
100101

101102
module.exports = {
102103
getKey,
104+
credsProfile,
103105
s3,
104106
bucketUtil,
105107
hydrateSSEConfig,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ describe('SSE KMS migration', () => {
125125
};
126126

127127
before('setup', async () => {
128+
console.log('Run migration',
129+
{ profile: helpers.credsProfile, accessKeyId: helpers.s3.config.credentials.accessKeyId });
130+
const allBuckets = (await helpers.s3.listBuckets().promise()).Buckets.map(b => b.Name);
131+
console.log('List buckets:', allBuckets);
128132
void await helpers.MD.setup();
129133
void await helpers.s3.headBucket({ Bucket: copyBkt }).promise();
130134
void await helpers.s3.headBucket(({ Bucket: mpuCopyBkt })).promise();

0 commit comments

Comments
 (0)