mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(ec2): include supported usage classes in DescribeInstanceTypes (#3347)
* fix(ec2): include supported usage classes in DescribeInstanceTypes * test(stepfunctions): document executor fixture dependencies * test(ec2): document usage class regression coverage
This commit is contained in:
1 parent
084ac87fc4
commit
19f410d6b0
4 files changed
+30
-1
No files matched your search
@@ -278,6 +278,22 @@ class Ec2Tests {
|
||||
.containsExactly("arm64");
|
||||
}
|
||||
|
||||
/** Regression coverage for the Karpenter instance-type compatibility contract. */
|
||||
@Test
|
||||
@Order(7)
|
||||
@DisplayName("DescribeInstanceTypes - supported usage classes")
|
||||
void describeInstanceTypeSupportedUsageClasses() {
|
||||
DescribeInstanceTypesResponse resp = ec2.describeInstanceTypes(DescribeInstanceTypesRequest.builder()
|
||||
.instanceTypes(InstanceType.M5_LARGE, InstanceType.fromValue("t4g.medium"),
|
||||
InstanceType.fromValue("m6gd.large"))
|
||||
.build());
|
||||
|
||||
assertThat(resp.instanceTypes()).hasSize(3);
|
||||
assertThat(resp.instanceTypes()).allSatisfy(instanceType ->
|
||||
assertThat(instanceType.supportedUsageClassesAsStrings())
|
||||
.containsExactlyInAnyOrder("on-demand", "spot"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(7)
|
||||
@DisplayName("CreateFleet - dry-run and instant on-demand launch")
|
||||
|
||||
Reference in new issue
Block a user