Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Oct 21, 2024
1 parent a82ff50 commit ba8e5e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-eks/test/cluster.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ describe('cluster', () => {
});
});

test('can specify bootstrap self managed add-ons', () => {
test.each([true, false])('can specify bootstrap self managed add-ons', (bootstrapSelfManagedAddons) => {
const { stack } = testFixture();

new eks.Cluster(stack, 'Cluster', {
version: CLUSTER_VERSION,
bootstrapSelfManagedAddons: true,
bootstrapSelfManagedAddons,
});

Template.fromStack(stack).hasResourceProperties('Custom::AWSCDK-EKS-Cluster', {
Config: {
bootstrapSelfManagedAddons: true,
bootstrapSelfManagedAddons,
},
});
});
Expand Down

0 comments on commit ba8e5e9

Please sign in to comment.