diff options
Diffstat (limited to 'csit/data')
-rw-r--r-- | csit/data/test-tree.json | 28 | ||||
-rw-r--r-- | csit/data/test-tree.yang | 24 | ||||
-rw-r--r-- | csit/data/update-test-tree.json | 1 |
3 files changed, 53 insertions, 0 deletions
diff --git a/csit/data/test-tree.json b/csit/data/test-tree.json new file mode 100644 index 0000000..bc9cbd7 --- /dev/null +++ b/csit/data/test-tree.json @@ -0,0 +1,28 @@ +{ + "test-tree": { + "branch": [ + { + "name": "Left", + "nest": { + "name": "Small", + "birds": [ + "Sparrow", + "Robin", + "Finch" + ] + } + }, + { + "name": "Right", + "nest": { + "name": "Big", + "birds": [ + "Owl", + "Raven", + "Crow" + ] + } + } + ] + } +}
\ No newline at end of file diff --git a/csit/data/test-tree.yang b/csit/data/test-tree.yang new file mode 100644 index 0000000..faba8a1 --- /dev/null +++ b/csit/data/test-tree.yang @@ -0,0 +1,24 @@ +module test-tree { + yang-version 1.1; + + namespace "org:onap:cps:test:test-tree"; + prefix tree; + revision "2020-02-02"; + + container test-tree { + list branch { + key "name"; + leaf name { + type string; + } + container nest { + leaf name { + type string; + } + leaf-list birds { + type string; + } + } + } + } +} diff --git a/csit/data/update-test-tree.json b/csit/data/update-test-tree.json new file mode 100644 index 0000000..d9ce41b --- /dev/null +++ b/csit/data/update-test-tree.json @@ -0,0 +1 @@ +{"nest": { "name": "Left_updated", "birds": ["bird"] } } |