File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,8 @@ describe('Secret Manager samples', () => {
343343 }
344344
345345 try {
346- await client . deleteSecret ( {
347- name : `${ secret . name } -regional-cmek` ,
346+ await regionalClient . deleteSecret ( {
347+ name : `${ regionalSecret . name } -regional-cmek` ,
348348 } ) ;
349349 } catch ( err ) {
350350 if ( ! err . message . includes ( 'NOT_FOUND' ) ) {
@@ -1020,13 +1020,23 @@ describe('Secret Manager samples', () => {
10201020 const output = execSync (
10211021 `node createSecretWithCmek.js ${ parent } ${ secretId } -cmek ${ kmsKeyName } `
10221022 ) ;
1023- assert . match ( output , new RegExp ( `CMEK key ${ kmsKeyName } ` ) ) ;
1023+ assert . match (
1024+ output ,
1025+ new RegExp (
1026+ `Created secret ${ secret . name } -cmek with CMEK key ${ kmsKeyName } `
1027+ )
1028+ ) ;
10241029 } ) ;
10251030
10261031 it ( 'create regional secret with customer managed enc key' , async ( ) => {
10271032 const output = execSync (
10281033 `node regional_samples/createRegionalSecretWithCmek.js ${ projectId } ${ locationId } ${ secretId } -regional-cmek ${ regionalKmsKeyName } `
10291034 ) ;
1030- assert . match ( output , new RegExp ( `CMEK key ${ regionalKmsKeyName } ` ) ) ;
1035+ assert . match (
1036+ output ,
1037+ new RegExp (
1038+ `Created secret ${ regionalSecret . name } -regional-cmek with CMEK key ${ regionalKmsKeyName } `
1039+ )
1040+ ) ;
10311041 } ) ;
10321042} ) ;
You can’t perform that action at this time.
0 commit comments