Skip to content

Commit ad9ac5b

Browse files
thiyaguk09quirogas
authored andcommitted
revert fix
1 parent 7ad92b6 commit ad9ac5b

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

handwritten/storage/test/bucket.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,23 +3365,13 @@ describe('Bucket', () => {
33653365
},
33663366
};
33673367

3368-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3369-
(bucket as any).request = (reqOpts: {json: BucketMetadata}) => {
3370-
const expectedEncryption = {
3371-
defaultKmsKeyName: 'kms-key-name',
3372-
googleManagedEncryptionEnforcementConfig: {
3373-
restrictionMode: 'FullyRestricted',
3374-
},
3375-
customerSuppliedEncryptionEnforcementConfig: {
3376-
restrictionMode: 'FullyRestricted',
3377-
},
3378-
};
3379-
try {
3380-
assert.deepStrictEqual(reqOpts.json.encryption, expectedEncryption);
3381-
done();
3382-
} catch (error) {
3383-
done(error);
3384-
}
3368+
bucket.setMetadata = (metadata: BucketMetadata) => {
3369+
assert.strictEqual(
3370+
metadata.encryption?.customerSuppliedEncryptionEnforcementConfig
3371+
?.restrictionMode,
3372+
'FullyRestricted'
3373+
);
3374+
done();
33853375
};
33863376

33873377
bucket.setMetadata(patch, assert.ifError);

0 commit comments

Comments
 (0)