mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
fix(ec2): preserve endpoint IP types across updates and templates (#5438)
* fix(ec2): preserve endpoint IP types across updates and templates * fix(ec2): honor omitted endpoint address types in templates
This commit is contained in:
1 parent
f4bce30269
commit
80e8b7465d
8 files changed
+184
-20
No files matched your search
@@ -1043,6 +1043,12 @@ class Ec2Tests {
|
||||
VpcEndpoint ep = described.vpcEndpoints().get(0);
|
||||
assertThat(ep.ipAddressType()).isEqualTo(IpAddressType.IPV4);
|
||||
assertThat(ep.stateAsString()).isEqualTo("available");
|
||||
ec2.modifyVpcEndpoint(ModifyVpcEndpointRequest.builder().vpcEndpointId(endpointId)
|
||||
.ipAddressType(IpAddressType.DUALSTACK).build());
|
||||
assertThat(ec2.describeVpcEndpoints(DescribeVpcEndpointsRequest.builder()
|
||||
.vpcEndpointIds(endpointId).build()).vpcEndpoints().get(0).ipAddressType())
|
||||
.isEqualTo(IpAddressType.DUALSTACK);
|
||||
|
||||
|
||||
assertThat(ep.networkInterfaceIds())
|
||||
.as("DescribeVpcEndpoints response")
|
||||
|
||||
Reference in new issue
Block a user