Skip to content

Commit

Permalink
feat(core): fix the integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-king-sh committed Jun 30, 2022
1 parent 3ab1510 commit 13920a2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface MyNestedStackProps {
readonly siblingTopic?: sns.Topic; // a topic defined in a sibling nested stack
readonly topicCount: number;
readonly topicNamePrefix: string;
readonly description?: string;
}

class MyNestedStack extends NestedStack {
Expand All @@ -22,6 +23,7 @@ class MyNestedStack extends NestedStack {
parameters: {
[topicNamePrefixLogicalId]: props.topicNamePrefix, // pass in a parameter to the nested stack
},
description: props.description,
});

const topicNamePrefixParameter = new CfnParameter(this, 'TopicNamePrefix', { type: 'String' });
Expand Down Expand Up @@ -57,7 +59,7 @@ class MyTestStack extends Stack {
const queue = new sqs.Queue(this, 'SubscriberQueue');

new MyNestedStack(this, 'NestedStack1', { topicCount: 3, topicNamePrefix: 'Prefix1', subscriber: queue });
new MyNestedStack(this, 'NestedStack2', { topicCount: 2, topicNamePrefix: 'Prefix2' });
new MyNestedStack(this, 'NestedStack2', { topicCount: 2, topicNamePrefix: 'Prefix2', description: 'This is secound nested stack.' });
}
}

Expand Down

0 comments on commit 13920a2

Please sign in to comment.