mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(ec2): persist VPC DNS attributes and support DescribeVpcEndpointServices (#624)
This commit is contained in:
1 parent
f5ec6fc887
commit
d28b175cb0
12 files changed
+193
-6
No files matched your search
@@ -613,6 +613,37 @@ class Ec2Tests {
|
||||
|
||||
@Test
|
||||
@Order(47)
|
||||
@DisplayName("ModifyVpcAttribute - set enableDnsSupport=false")
|
||||
void modifyVpcAttributeDnsSupport() {
|
||||
ec2.modifyVpcAttribute(r -> r.vpcId(vpcId)
|
||||
.enableDnsSupport(a -> a.value(false)));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(48)
|
||||
@DisplayName("DescribeVpcAttribute - enableDnsSupport round-trip")
|
||||
void describeVpcAttributeDnsSupport() {
|
||||
DescribeVpcAttributeResponse resp = ec2.describeVpcAttribute(r -> r
|
||||
.vpcId(vpcId)
|
||||
.attribute(VpcAttributeName.ENABLE_DNS_SUPPORT));
|
||||
|
||||
assertThat(resp.vpcId()).isEqualTo(vpcId);
|
||||
assertThat(resp.enableDnsSupport().value()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(49)
|
||||
@DisplayName("DescribeVpcEndpointServices - returns empty list")
|
||||
void describeVpcEndpointServices() {
|
||||
DescribeVpcEndpointServicesResponse resp = ec2.describeVpcEndpointServices(
|
||||
DescribeVpcEndpointServicesRequest.builder().build());
|
||||
|
||||
assertThat(resp.serviceNames()).isEmpty();
|
||||
assertThat(resp.serviceDetails()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(50)
|
||||
@DisplayName("DeleteVpc - delete VPC")
|
||||
void deleteVpc() {
|
||||
ec2.deleteVpc(DeleteVpcRequest.builder().vpcId(vpcId).build());
|
||||
|
||||
Reference in new issue
Block a user