]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-config-translator] Small improvements
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Oct 2018 14:09:24 +0000 (16:09 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Oct 2018 14:09:24 +0000 (16:09 +0200)
src/lib/yang/tests/adaptor_config_unittests.cc
src/lib/yang/tests/config_unittests.cc
src/lib/yang/translator_config.h

index a4d873f3776688f233df82ccacc7493222da60a5..23092f81381ac3484fb1ade11c40879f676acf9d 100644 (file)
@@ -63,7 +63,8 @@ void testFile(const std::string& fname, bool v6, ElementPtr& result) {
 
 
 TEST_F(AdaptorConfigTest, loadExamples4) {
-    vector<string> configs = { "advanced.json" ,
+    vector<string> configs = { "advanced.json",
+                               "all-keys.json",
                                "backends.json",
                                "cassandra.json",
                                "classify.json",
@@ -92,6 +93,7 @@ TEST_F(AdaptorConfigTest, loadExamples4) {
 
 TEST_F(AdaptorConfigTest, loadExamples6) {
     vector<string> configs = { "advanced.json",
+                               "all-keys.json",
                                "backends.json",
                                "cassandra.json",
                                "classify.json",
index ed5a18236a469c9816231597e8a3a5a8f2e7443f..53fd0077571d229e4a66885c05e77355f3f82aa7 100644 (file)
@@ -343,6 +343,7 @@ TEST_F(ConfigTest, examples4) {
     for (string file : examples) {
         resetSession();
         string path = string(CFG_EXAMPLES) + "/kea4/" + file;
+        cout << "Testing file " << path << endl;
         ConstElementPtr json;
         ASSERT_NO_THROW(json = loadFile(path));
         json = isc::test::moveComments(json);
@@ -383,6 +384,7 @@ TEST_F(ConfigTest, examples6) {
     for (string file : examples) {
         resetSession();
         string path = string(CFG_EXAMPLES) + "/kea6/" + file;
+        cout << "Testing file " << path << endl;
         ConstElementPtr json;
         ASSERT_NO_THROW(json = loadFile(path));
         json = isc::test::moveComments(json);
index b638d79f5df98385519194e64e848abf186a45c6..d95efa978b9335f070e2901ba06c198dbfea2b40 100644 (file)
@@ -152,7 +152,7 @@ namespace yang {
 ///        |                    +- pd ----+          |
 ///        |                    |  pool   |          |
 ///        |                    |  (list) |          |
-///        |                    |         |          |          
+///        |                    |         |          |
 ///        +--------------------+- host --+          |
 ///        |                       (liat) |          |
 ///        |                              |          |