summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2022-04-22 21:03:45 +0200
committerRazvan Becheriu <razvan@isc.org>2022-04-22 21:34:40 +0200
commitd45fc8888eeadf62535e9afa46ca5e858a39c5c5 (patch)
treeb0485f1b5f50c626174b89ad9f2e65c7ddfc246d /src/bin/netconf
parent[#2382] reduced hook list in example (diff)
downloadkea-d45fc8888eeadf62535e9afa46ca5e858a39c5c5.tar.xz
kea-d45fc8888eeadf62535e9afa46ca5e858a39c5c5.zip
[#687] fixed unittests
Diffstat (limited to 'src/bin/netconf')
-rw-r--r--src/bin/netconf/tests/control_socket_unittests.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/netconf/tests/control_socket_unittests.cc b/src/bin/netconf/tests/control_socket_unittests.cc
index cbc024f17b..b57738bead 100644
--- a/src/bin/netconf/tests/control_socket_unittests.cc
+++ b/src/bin/netconf/tests/control_socket_unittests.cc
@@ -657,7 +657,7 @@ TEST_F(HttpControlSocketTest, configGet) {
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"command\": \"config-get\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
@@ -684,7 +684,7 @@ TEST_F(HttpControlSocketTest, configGetCA) {
ConstElementPtr command = reflected->get("received");
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
- string expected = "{ \"command\": \"config-get\" }";
+ string expected = "{ \"command\": \"config-get\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}
@@ -715,7 +715,7 @@ TEST_F(HttpControlSocketTest, configTest) {
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
"\"command\": \"config-test\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
@@ -746,7 +746,7 @@ TEST_F(HttpControlSocketTest, configTestCA) {
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
- "\"command\": \"config-test\" }";
+ "\"command\": \"config-test\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}
@@ -777,7 +777,7 @@ TEST_F(HttpControlSocketTest, configSet) {
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
"\"command\": \"config-set\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
@@ -808,7 +808,7 @@ TEST_F(HttpControlSocketTest, configSetCA) {
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
- "\"command\": \"config-set\" }";
+ "\"command\": \"config-set\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}