File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments