mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(ec2): include network metadata in instance type responses (#2943)
This commit is contained in:
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")
|
||||
|
||||
Reference in new issue
Block a user