Skip to content

Commit b51b991

Browse files
committed
fix(test): loosen up supportedVersionsRegex
to support any 1.x Kubernetes version
1 parent 6c58830 commit b51b991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/test/infra.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ describe('Stack contains resources', () => {
2020
// Test that it's a supported version
2121
test('EKS cluster with supported Kubernetes version', () => {
2222
// This is a non-ideal way of validating supported versions, but seems to work.
23-
const supportedVersionsRegex = '1.19|1.20|1.21|1.22|1.23';
23+
const supportedVersionsRegex = '1.[0-9]{2}';
2424
template.hasResourceProperties('Custom::AWSCDK-EKS-Cluster', {
2525
Config: {
2626
version: Match.stringLikeRegexp(supportedVersionsRegex)
2727
}
2828
});
2929
});
3030

31-
});
31+
});

0 commit comments

Comments
 (0)