summaryrefslogtreecommitdiffstats
path: root/cps-service/src/test/resources
diff options
context:
space:
mode:
authoremaclee <lee.anjella.macabuhay@est.tech>2022-10-03 12:03:00 +0100
committeremaclee <lee.anjella.macabuhay@est.tech>2022-10-04 09:00:24 +0100
commite8299274db313f4f83a10b9f627d51d0b910377d (patch)
tree0dff228cf166241f124aec290a487ad3ff66ef40 /cps-service/src/test/resources
parentfe7753178f5f1b4814dcf7473ea8c761951d8f02 (diff)
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 <lee.anjella.macabuhay@est.tech> Change-Id: Ia4a8c3e36f83b4cd857b4ff20f6a37e418ffd2ec
Diffstat (limited to 'cps-service/src/test/resources')
-rw-r--r--cps-service/src/test/resources/multiple-object-data.json8
-rw-r--r--cps-service/src/test/resources/multipleDataTree.yang23
2 files changed, 31 insertions, 0 deletions
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;
+ }
+ }
+}