Skip to content

Commit

Permalink
CLDSRV-554 fix put Metadata with hardcoded owner-id
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas2bert committed Jul 17, 2024
1 parent a26ce5f commit 88a7bee
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/functional/raw-node/test/routes/routeBackbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ const testMd = {
},
};

// S3_TESTVAL_OWNERCANONICALID variable is used by Integration that runs E2E tests with real Vault account.
if (process.env.S3_TESTVAL_OWNERCANONICALID) {
testMd['owner-id'] = process.env.S3_TESTVAL_OWNERCANONICALID;
}

function checkObjectData(s3, objectKey, dataValue, done) {
s3.getObject({
Bucket: TEST_BUCKET,
Expand Down Expand Up @@ -1939,13 +1944,14 @@ describeSkipIfAWS('backbeat routes', () => {
'403 Forbidden if the account does not match the ' +
'backbeat user',
done => {
makeBackbeatRequest({
const { accessKeyId: accessKeyLisa, secretAccessKey: secretAccessKeyLisa } = getCredentials('lisa');
return makeBackbeatRequest({
method: test.method, bucket: TEST_BUCKET,
objectKey: TEST_KEY, resourceType: test.resourceType,
queryObj,
authCredentials: {
accessKey: 'accessKey2',
secretKey: 'verySecretKey2',
accessKey: accessKeyLisa,
secretKey: secretAccessKeyLisa,
},
},
err => {
Expand Down

0 comments on commit 88a7bee

Please sign in to comment.