commit | 7aaf6dc2443993cf364f7015fbad19ebb613c6ad | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Fri Jun 26 18:03:57 2020 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Jun 26 19:43:53 2020 +0200 |
tree | 0f0dd6fe7721365e8aac1723a48cd8dd8f1a67b9 | |
parent | 70d7f7aff35b5a48e074f3ace64dd268febe22e0 [diff] |
YangSchema: Throw on enabling invalid features Bug: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/181 Change-Id: Iad3c37098308da752ab7fbca95d900fbe67605d2
diff --git a/tests/yang.cpp b/tests/yang.cpp index 833ef70..843e1a8 100644 --- a/tests/yang.cpp +++ b/tests/yang.cpp
@@ -1188,5 +1188,10 @@ { REQUIRE_THROWS_AS(ys.enableFeature("non-existing", "just-no"), std::runtime_error); } + + SECTION("enableFeature - non existing feature") + { + REQUIRE_THROWS_AS(ys.enableFeature("example-schema", "just-no"), std::runtime_error); + } } }