Skip to content

Commit 5801b2c

Browse files
committed
change integ
integ integ integ
1 parent ef4e8de commit 5801b2c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/destroy/cdk-destroy-stage-only.integtest.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@ import { DescribeStacksCommand } from '@aws-sdk/client-cloudformation';
22
import { integTest, withDefaultFixture } from '../../../lib';
33

44
integTest('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

0 commit comments

Comments
 (0)