From b022c867e86333ceaad9027e2e7ee621ab3891e5 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 20 Sep 2017 01:49:11 +0200 Subject: vty_test: add artificial node levels for better testing In vty_test, add three levels of parent nodes (level1, level2, level3) with each having a leaf child (child1, child2, child3). Use these to enhance the vty_test cfg files and test more diverse situations. The current VTY code expects a go_parent_cb() to be present, otherwise it will bump right back to the CONFIG_NODE, which will not work with more than one node level below the CONFIG_NODE. Hence provide a minimal go_parent_cb(). Change-Id: Ib9bcf58b655fbd85e196f363fb7d8305d7dfc997 --- tests/vty/ok_empty_parent.cfg | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'tests/vty/ok_empty_parent.cfg') diff --git a/tests/vty/ok_empty_parent.cfg b/tests/vty/ok_empty_parent.cfg index fe04fcfa..40dd3725 100644 --- a/tests/vty/ok_empty_parent.cfg +++ b/tests/vty/ok_empty_parent.cfg @@ -1,2 +1,22 @@ -line vty -log stderr +level1 a + level2 a + level3 a +level1 b + level2 b +level1 c +level1 d + level2 e + level2 f + level3 f + level3 g + level2 g + level2 h +level1 h +level1 i +level1 j + level2 j + child1 j +level1 k + level2 k + level3 k + child1 k -- cgit v1.2.3