]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#709,!407] Minor updates to the server unittests as a result of review. 709-cb_cmds-add-support-for-commands-to-manage-the-servers
authorMarcin Siodelski <marcin@isc.org>
Wed, 3 Jul 2019 14:59:03 +0000 (16:59 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 3 Jul 2019 23:10:51 +0000 (01:10 +0200)
- Fixed a typo in the toElement test name,
- Added missing whitespace
- Fixed a typo in getByTag test description.

src/lib/database/tests/server_unittest.cc

index 8cc0ceb5a746d5b6410c8506d4d8681526ed816d..63e189bcc45382825a30c3df978149627c866c58 100644 (file)
@@ -35,8 +35,8 @@ TEST(ServerTest, tooLongDescription) {
                  BadValue);
 }
 
-// Tests that toElement method works well.
-TEST(ServerTest, toEDlement) {
+// Tests that toElement method returns expected JSON map.
+TEST(ServerTest, toElement) {
     ServerPtr server1 = Server::create(ServerTag("foo"), "a server");
     std::string expected1 = "{"
         "\"server-tag\": \"foo\","
@@ -44,7 +44,7 @@ TEST(ServerTest, toEDlement) {
         " }";
     isc::test::runToElementTest<Server>(expected1, *server1);
 
-    ServerPtr server2 =Server::create(ServerTag("bar"));
+    ServerPtr server2 = Server::create(ServerTag("bar"));
     std::string expected2= "{"
         "\"server-tag\": \"bar\","
         "\"description\": \"\""
@@ -52,7 +52,7 @@ TEST(ServerTest, toEDlement) {
     isc::test::runToElementTest<Server>(expected2, *server2);
 }
 
-// Tests that it is possible to fetch server by tag fromn the collection.
+// Tests that it is possible to fetch server by tag from the collection.
 TEST(ServerFetcherTest, getByTag) {
     ServerCollection servers;