CONTROL_RESULT_SUCCESS,
"3 IPv4 subnets found");
- // Verify that the returned response has the expected subnets.
+ // Verify that the returned response has the expected subnets.
std::string exp_args=R"(
{
- "subnets": [
+ "subnets": [
{
- "id": 5,
- "shared-network-name": "net1",
- "subnet": "10.0.0.0/8"
+ "id": 5,
+ "shared-network-name": "net1",
+ "subnet": "10.0.0.0/8"
},
{
- "id": 10,
- "shared-network-name": null,
- "subnet": "192.168.50.0/24"
+ "id": 10,
+ "shared-network-name": null,
+ "subnet": "192.168.50.0/24"
},
{
- "id": 123,
- "shared-network-name": "net2",
- "subnet": "192.0.2.0/29"
+ "id": 123,
+ "shared-network-name": "net2",
+ "subnet": "192.0.2.0/29"
}
]
}
CONTROL_RESULT_SUCCESS,
"3 IPv6 subnets found");
- // Verify that the returned response has the expected subnets.
+ // Verify that the returned response has the expected subnets.
std::string exp_args=R"(
- {
- "subnets": [
- {
- "id": 9,
- "shared-network-name": "net1",
- "subnet": "3000::/16"
- },
- {
- "id": 11,
- "shared-network-name": null,
- "subnet": "3001:23::/92"
- },
{
- "id": 1023,
- "shared-network-name": "net2",
- "subnet": "2001:db8:1::/64"
- }]
- }
+ "subnets": [
+ {
+ "id": 9,
+ "shared-network-name": "net1",
+ "subnet": "3000::/16"
+ },
+ {
+ "id": 11,
+ "shared-network-name": null,
+ "subnet": "3001:23::/92"
+ },
+ {
+ "id": 1023,
+ "shared-network-name": "net2",
+ "subnet": "2001:db8:1::/64"
+ }
+ ]
+ }
)";
ASSERT_NO_FATAL_FAILURE(checkResponseArgs(response, exp_args));