fix(ec2): include network metadata in instance type responses (#2943)

This commit is contained in:
luiseterc authored and GitHub committed 2026-09-02 16:36:41 -04:00
1 parent 30b8f88467
commit c54b237cd8
6 files changed
+61 -1

No files matched your search

@@ -193,6 +193,23 @@ class Ec2Tests {
assertThat(resp.instanceTypes()).isNotEmpty();
}
@Test
@Order(7)
@DisplayName("DescribeInstanceTypes - network compatibility metadata")
void describeInstanceTypeNetworkCompatibilityMetadata() {
DescribeInstanceTypesResponse resp = ec2.describeInstanceTypes(DescribeInstanceTypesRequest.builder()
.instanceTypes(InstanceType.M5_LARGE, InstanceType.fromValue("t4g.medium"))
.build());
assertThat(resp.instanceTypes()).hasSize(2);
assertThat(resp.instanceTypes()).allSatisfy(instanceType -> {
assertThat(instanceType.networkInfo()).isNotNull();
assertThat(instanceType.networkInfo().encryptionInTransitSupported()).isNotNull();
});
assertThat(resp.instanceTypes()).allMatch(instanceType ->
!instanceType.networkInfo().encryptionInTransitSupported());
}
@Test
@Order(7)
@DisplayName("DescribeInstanceTypes - processor architectures")