File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/destroy Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,24 @@ import { DescribeStacksCommand } from '@aws-sdk/client-cloudformation';
22import { integTest , withDefaultFixture } from '../../../lib' ;
33
44integTest ( 'cdk destroy can destroy stacks in stage-only configuration' , withDefaultFixture ( async ( fixture ) => {
5+ const integStackSet = 'stage-only' ;
6+
57 const stageNameSuffix = 'stage' ;
68 const specifiedStackName = `${ stageNameSuffix } /*` ;
79
8- await fixture . cdkDeploy ( specifiedStackName ) ;
10+ await fixture . cdkDeploy ( specifiedStackName , {
11+ modEnv : {
12+ INTEG_STACK_SET : integStackSet ,
13+ } ,
14+ } ) ;
915
1016 const stackName = `${ fixture . fullStackName ( stageNameSuffix ) } -StackInStage` ;
1117 const stack = await fixture . aws . cloudFormation . send ( new DescribeStacksCommand ( { StackName : stackName } ) ) ;
1218 expect ( stack . Stacks ?. length ?? 0 ) . toEqual ( 1 ) ;
1319
14- await fixture . cdkDestroy ( 'stage/*' , {
20+ await fixture . cdkDestroy ( specifiedStackName , {
1521 modEnv : {
16- INTEG_STACK_SET : 'stage-only' ,
22+ INTEG_STACK_SET : integStackSet ,
1723 } ,
1824 } ) ;
1925
You can’t perform that action at this time.
0 commit comments