mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(ec2): add missing subnet attributes and instance block device attachTime (#1087)
ModifySubnetAttribute only handled MapPublicIpOnLaunch; the other three AWS-defined attributes — AssignIpv6AddressOnCreation, EnableDns64, and MapCustomerOwnedIpOnLaunch — were silently ignored. Added them to the handler loop and to the Subnet model, and included them in the DescribeSubnets XML response alongside an empty ipv6CidrBlockAssociationSet element that AWS always returns. DescribeInstances was missing attachTime on blockDeviceMapping/ebs, causing SDK response shape validation to fail for callers that inspect that field.
This commit is contained in:
1 parent
bd6ec2d5c6
commit
b74b02da4f
5 files changed
+82
-7
No files matched your search
@@ -287,6 +287,22 @@ class Ec2IntegrationTest {
|
||||
.body("DescribeSubnetsResponse.subnetSet.item.subnetId", equalTo(subnetId));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(21)
|
||||
void createSubnetHasAssignIpv6AddressOnCreation() {
|
||||
given()
|
||||
.formParam("Action", "DescribeSubnets")
|
||||
.formParam("SubnetId.1", subnetId)
|
||||
.header("Authorization", AUTH_HEADER)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("DescribeSubnetsResponse.subnetSet.item.assignIpv6AddressOnCreation", equalTo("false"))
|
||||
.body("DescribeSubnetsResponse.subnetSet.item.enableDns64", equalTo("false"))
|
||||
.body("DescribeSubnetsResponse.subnetSet.item.mapCustomerOwnedIpOnLaunch", equalTo("false"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(22)
|
||||
void modifySubnetAttribute() {
|
||||
|
||||
Reference in new issue
Block a user