From 3303549e346d0b87d0fa00d0e7088ab97b287fe1 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 24 Oct 2018 16:09:24 +0200 Subject: [PATCH] [65-libyang-config-translator] Small improvements --- src/lib/yang/tests/adaptor_config_unittests.cc | 4 +++- src/lib/yang/tests/config_unittests.cc | 2 ++ src/lib/yang/translator_config.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/yang/tests/adaptor_config_unittests.cc b/src/lib/yang/tests/adaptor_config_unittests.cc index a4d873f377..23092f8138 100644 --- a/src/lib/yang/tests/adaptor_config_unittests.cc +++ b/src/lib/yang/tests/adaptor_config_unittests.cc @@ -63,7 +63,8 @@ void testFile(const std::string& fname, bool v6, ElementPtr& result) { TEST_F(AdaptorConfigTest, loadExamples4) { - vector configs = { "advanced.json" , + vector 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 configs = { "advanced.json", + "all-keys.json", "backends.json", "cassandra.json", "classify.json", diff --git a/src/lib/yang/tests/config_unittests.cc b/src/lib/yang/tests/config_unittests.cc index ed5a18236a..53fd007757 100644 --- a/src/lib/yang/tests/config_unittests.cc +++ b/src/lib/yang/tests/config_unittests.cc @@ -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); diff --git a/src/lib/yang/translator_config.h b/src/lib/yang/translator_config.h index b638d79f5d..d95efa978b 100644 --- a/src/lib/yang/translator_config.h +++ b/src/lib/yang/translator_config.h @@ -152,7 +152,7 @@ namespace yang { /// | +- pd ----+ | /// | | pool | | /// | | (list) | | -/// | | | | +/// | | | | /// +--------------------+- host --+ | /// | (liat) | | /// | | | -- 2.47.2