Skip to content
forked from aws/aws-cdk

Commit

Permalink
Merge pull request #71 from jose-clickup/add-CRR-buckets-integ-test
Browse files Browse the repository at this point in the history
Add crr buckets integ test
  • Loading branch information
ahammond authored Jan 3, 2024
2 parents 07f1da1 + f2e8d9b commit c208e0f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ describeDeprecated('codepipeline existing', () => {
const existingCodePipeline = new codePipeline.Pipeline(stack, 'CustomCodePipeline');

expect(() => {
new cdkp.CdkPipeline(stack, 'CDKPipeline', {
new cdkp.CodePipeline(stack, 'CDKPipeline', {
crossRegionReplicationBuckets: {}, // Even the empty set is forbidden.
codePipeline: existingCodePipeline,
cloudAssemblyArtifact: new codePipeline.Artifact(),
});
synth: new cdkp.ShellStep('Synth', {
commands: ['echo hello'],
}),
}).buildPipeline();
}).toThrow("Cannot set 'crossRegionReplicationBuckets' if an existing CodePipeline is given using 'codePipeline'");
});
});

0 comments on commit c208e0f

Please sign in to comment.