Skip to content

Commit 1f27fe8

Browse files
CLDSRV-717: Change accountId to work with Vault 1
1 parent 4fe211c commit 1f27fe8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/multipleBackend/routes/routeBackbeatForReplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ describe('backbeat routes for replication', () => {
343343
objectKey: keyName,
344344
queryObj: {
345345
versionId,
346-
accountId: 'invalid',
346+
accountId: '888888888888', // Vault v1 differentiate InvalidAccountId from NoSuchEntity
347347
},
348348
authCredentials: destinationAuthCredentials,
349349
requestBody: objMD,
350350
}, next),
351351
}, err => {
352-
assert.strictEqual(err.code, 'AccountNotFound');
352+
assert.strictEqual(err.code, process.env.S3_END_TO_END ? 'NoSuchEntity' : 'AccountNotFound');
353353
return done();
354354
});
355355
});

0 commit comments

Comments
 (0)