mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
[#3811] Addressed review comments
Changes to be committed: modified: changelog_unreleased/3811-include-the-shared-network-name-in-the-subnetx-list-response modified: src/hooks/dhcp/subnet_cmds/tests/subnet4_cmds_unittest.cc modified: src/hooks/dhcp/subnet_cmds/tests/subnet6_cmds_unittest.cc modified: src/hooks/dhcp/subnet_cmds/tests/subnet_cmds_unittest.h
This commit is contained in:
parent
fc59433ae9
commit
0ade1dae0f
@ -1758,8 +1758,7 @@ TEST_F(Subnet4CmdsTest, subnet4List) {
|
||||
CONTROL_RESULT_SUCCESS,
|
||||
"3 IPv4 subnets found");
|
||||
|
||||
// Verify that the response has appropriate structure and returned
|
||||
// the expected arguments.
|
||||
// Verify that the returned response has the expected subnets.
|
||||
std::string exp_args=R"(
|
||||
{
|
||||
"subnets": [
|
||||
|
@ -2449,8 +2449,7 @@ TEST_F(Subnet6CmdsTest, subnet6List) {
|
||||
CONTROL_RESULT_SUCCESS,
|
||||
"3 IPv6 subnets found");
|
||||
|
||||
// Verify that the response has appropriate structure and returned
|
||||
// the expected arguments.
|
||||
// Verify that the returned response has the expected subnets.
|
||||
std::string exp_args=R"(
|
||||
{
|
||||
"subnets": [
|
||||
@ -2483,6 +2482,7 @@ TEST_F(Subnet6CmdsTest, noSubnet6List) {
|
||||
ConstElementPtr response = testCommand("{ \"command\": \"subnet6-list\" }",
|
||||
CONTROL_RESULT_EMPTY,
|
||||
"0 IPv6 subnets found");
|
||||
|
||||
// Verify that the response has appropriate structure and no subnets
|
||||
// are included.
|
||||
std::string exp_args=R"(
|
||||
|
@ -491,7 +491,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/// @brief Verifies that the content of the "args" element in the response.
|
||||
/// @brief Verifies the content of the "args" element in the response.
|
||||
///
|
||||
/// @param answer Server's response to a command.
|
||||
/// @param exp_args JSON map of the expected arguments contents.
|
||||
|
Loading…
x
Reference in New Issue
Block a user