]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#30] Minor unit-tests correction.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 9 Oct 2018 19:24:44 +0000 (21:24 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 27 Dec 2018 20:00:18 +0000 (21:00 +0100)
src/bin/d2/tests/d2_command_unittest.cc

index 6897c6d13c0f7f31837b6f3dd5d7c3b98496b93f..a72c0049fdb432e424f9819638eff31272851fa1 100644 (file)
@@ -684,7 +684,7 @@ TEST_F(CtrlChannelD2Test, configTest) {
     ASSERT_TRUE(proc);
     ConstElementPtr answer = proc->configure(config, false);
     ASSERT_TRUE(answer);
-    EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration committed.\" }",
+    EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration applied successfully.\" }",
               answer->str());
     
     // Check that the config was indeed applied.
@@ -717,7 +717,7 @@ TEST_F(CtrlChannelD2Test, configTest) {
     sendUnixCommand(os.str(), response);
 
     // Should fail with a syntax error.
-    EXPECT_EQ("{ \"result\": 1, \"text\": \"element: tsig-keys : missing parameter 'name' (<wire>:9:14)<wire>:8:23\" }",
+    EXPECT_EQ("{ \"result\": 1, \"text\": \"missing parameter 'name' (<wire>:9:14)\" }",
               response);
 
     // Check that the config was not lost.
@@ -748,7 +748,7 @@ TEST_F(CtrlChannelD2Test, configTest) {
     EXPECT_TRUE(test::fileExists(socket_path_));
 
     // Verify the configuration was successful.
-    EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration seems sane.\" }",
+    EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration check successful\" }",
               response);
 
     // Check that the config was not applied.