Merge pull request #21543 from overleaf/jpa-s3-seec-kek-rotation
[object-persistor] s3SSEC: add support for (automatic) KEK rotation GitOrigin-RevId: 315082e894c74e276a8efbc46b41ec7e102f9010
This commit is contained in:
@@ -93,6 +93,12 @@ describe('S3PersistorTests', function () {
|
||||
setTimeout(() => {
|
||||
if (this.err) return ReadStream.emit('error', this.err)
|
||||
this.emit('httpHeaders', this.statusCode)
|
||||
if (this.statusCode === 403) {
|
||||
ReadStream.emit('error', S3AccessDeniedError)
|
||||
}
|
||||
if (this.statusCode === 404) {
|
||||
ReadStream.emit('error', S3NotFoundError)
|
||||
}
|
||||
})
|
||||
return ReadStream
|
||||
}
|
||||
@@ -359,7 +365,7 @@ describe('S3PersistorTests', function () {
|
||||
})
|
||||
|
||||
it('wraps the error', function () {
|
||||
expect(error.cause).to.exist
|
||||
expect(error.cause).to.equal(S3AccessDeniedError)
|
||||
})
|
||||
|
||||
it('stores the bucket and key in the error', function () {
|
||||
|
||||
Reference in New Issue
Block a user