Skip to content

Commit f39359c

Browse files
fix expected error message in clear-retention test
assert_throws_async does strict equality on the message. The actual S3 error mapped from OBJECT_LOCKED is AccessDeniedObjectLocked which has message 'Access Denied because object protected by object lock.' not the generic 'Access Denied'. Signed-off-by: kajalpareek-lab <pareekkajal97@gmail.com>
1 parent 060aa78 commit f39359c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/integration_tests/api/s3/test_s3_worm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ mocha.describe('s3 worm', function() {
591591
Key: CLEAR_RET_KEY,
592592
VersionId: clear_ret_version_id,
593593
Retention: {},
594-
}), 'AccessDenied', 'Access Denied');
594+
}), 'AccessDenied', 'Access Denied because object protected by object lock.');
595595
});
596596

597597
mocha.it('should clear GOVERNANCE retention with bypass flag', async function() {

0 commit comments

Comments
 (0)