Browse Source

[3259] Updating non-dhcpsrv test with new hooks library syntax

Stephen Morris 9 years ago
parent
commit
a3a71305a8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/bin/dhcp6/tests/config_parser_unittest.cc

+ 4 - 1
src/bin/dhcp6/tests/config_parser_unittest.cc

@@ -3026,6 +3026,9 @@ TEST_F(Dhcp6ParserTest, DISABLED_stdOptionDataEncapsulate) {
 // of hooks libraries.
 std::string
 buildHooksLibrariesConfig(const std::vector<std::string>& libraries) {
+    const string lbrace("{");
+    const string rbrace("}");
+    const string liblabel("\"library\": ");
     const string quote("\"");
 
     // Create the first part of the configuration string.
@@ -3038,7 +3041,7 @@ buildHooksLibrariesConfig(const std::vector<std::string>& libraries) {
         if (i > 0) {
             config += string(", ");
         }
-        config += (quote + libraries[i] + quote);
+        config += (lbrace + liblabel + quote + libraries[i] + quote + rbrace);
     }
 
     // Append the remainder of the configuration.