summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-03-20 11:50:14 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-03-29 10:28:14 -0500
commitdccc689e0e666787834f45e6ab6bd972fddabf95 (patch)
tree8da0b310bb490bf7679a538fb3ad84fd1e998f91 /tests
parentda43c4cbd495ce85f491c304de43e65ee1f39f08 (diff)
downloadvyos-1x-dccc689e0e666787834f45e6ab6bd972fddabf95.tar.gz
vyos-1x-dccc689e0e666787834f45e6ab6bd972fddabf95.zip
configdiff: T5089: add unit test
Diffstat (limited to 'tests')
-rw-r--r--tests/data/config.left36
-rw-r--r--tests/data/config.right25
2 files changed, 61 insertions, 0 deletions
diff --git a/tests/data/config.left b/tests/data/config.left
new file mode 100644
index 000000000..e57c40396
--- /dev/null
+++ b/tests/data/config.left
@@ -0,0 +1,36 @@
+node1 {
+ tag_node foo {
+ valueless
+ multi_node 'v2'
+ multi_node 'v1'
+ single 'left_val'
+ }
+ tag_node bar {
+ node {
+ single 'v0'
+ }
+ }
+ tag_node other {
+ leaf 'leaf_l'
+ }
+}
+
+node3 {
+}
+
+node2 {
+ sub_node_other {
+ single 'val'
+ }
+ sub_node {
+ tag_node other {
+ single 'val'
+ }
+ tag_node bob {
+ valued 'baz'
+ }
+ tag_node duff {
+ valued 'buz'
+ }
+ }
+}
diff --git a/tests/data/config.right b/tests/data/config.right
new file mode 100644
index 000000000..48defeb89
--- /dev/null
+++ b/tests/data/config.right
@@ -0,0 +1,25 @@
+node1 {
+ tag_node baz {
+ other_node {
+ multi_node 'some_val'
+ multe_node 'other_val'
+ }
+ }
+ tag_node foo {
+ valueless
+ multi_node 'v3'
+ multi_node 'v1'
+ single 'right_val'
+ }
+ tag_node other {
+ leaf 'leaf_r'
+ }
+}
+
+node2 {
+ sub_node {
+ tag_node other {
+ multi 'mv'
+ }
+ }
+}