Disable rpc node completion for get
Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/192
Change-Id: Ib48cf042935bae974a846f0a7c7af3cc61f3e53e
diff --git a/tests/path_completion.cpp b/tests/path_completion.cpp
index 0b0d3f8..0585be0 100644
--- a/tests/path_completion.cpp
+++ b/tests/path_completion.cpp
@@ -359,5 +359,12 @@
expectedContextLength = 0;
}
+ SECTION("rpc nodes not completed for the get command")
+ {
+ input = "get ";
+ expectedCompletions = {"example:addresses", "example:ano/", "example:anoda/", "example:bota/", "example:leafInt ", "example:list", "example:ovoce", "example:ovocezelenina", "example:readonly ", "example:twoKeyList", "second:amelie/"};
+ expectedContextLength = 0;
+ }
+
REQUIRE(parser.completeCommand(input, errorStream) == (Completions{expectedCompletions, expectedContextLength}));
}