From e8299274db313f4f83a10b9f627d51d0b910377d Mon Sep 17 00:00:00 2001 From: emaclee Date: Mon, 3 Oct 2022 12:03:00 +0100 Subject: Tests added for multiple data tree analysis **this commit is for analysis purposes only, not for merge - add unit test for gson JSONreader - add unit test for ODL JsonParserStream Issue-ID: CPS-1286 Signed-off-by: emaclee Change-Id: Ia4a8c3e36f83b4cd857b4ff20f6a37e418ffd2ec --- .../src/test/resources/multiple-object-data.json | 8 ++++++++ .../src/test/resources/multipleDataTree.yang | 23 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 cps-service/src/test/resources/multiple-object-data.json create mode 100644 cps-service/src/test/resources/multipleDataTree.yang (limited to 'cps-service/src/test/resources') diff --git a/cps-service/src/test/resources/multiple-object-data.json b/cps-service/src/test/resources/multiple-object-data.json new file mode 100644 index 0000000000..a3c46763a7 --- /dev/null +++ b/cps-service/src/test/resources/multiple-object-data.json @@ -0,0 +1,8 @@ +{ + "first-container": { + "a-leaf": "a-Value" + }, + "last-container": { + "x-leaf": "x-value" + } +} \ No newline at end of file diff --git a/cps-service/src/test/resources/multipleDataTree.yang b/cps-service/src/test/resources/multipleDataTree.yang new file mode 100644 index 0000000000..15fd04246a --- /dev/null +++ b/cps-service/src/test/resources/multipleDataTree.yang @@ -0,0 +1,23 @@ +module multipleDataTree { + yang-version 1.1; + namespace "org:onap:ccsdk:multiDataTree"; + + prefix multiple-data-tree; + + revision "2020-09-15" { + description + "Sample Model for multiple data tree"; + } + + container first-container { + leaf a-leaf { + type string; + } + } + + container last-container { + leaf x-leaf { + type string; + } + } +} -- cgit 1.2.3-korg