summaryrefslogtreecommitdiffstats
path: root/csit/data/cps-core
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-12-07 15:33:09 +0000
committerJvD_Ericsson <jeff.van.dam@est.tech>2023-12-12 10:37:19 +0000
commit14d37304d8b83efc099ba19d6f3e7d5d53fead29 (patch)
tree5aac3fa33056f1d85be4b77a0c2809862569dee5 /csit/data/cps-core
parent93f2c3ff203d78d8cddae7878d16fe2f55661655 (diff)
Clean up CSIT Test
- Removed gitignore from csit and made it top level - Removed tabs from all files - Created sub-folder for cps-core and ncmp in the data folder - Deleted csit/data/postModuleRequestBody.json, was not used - Removed setting variable for most response.json() calls Issue-Id: CPS-734 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32fd5b4f5a0132987a4684c336846b86df7b49e7
Diffstat (limited to 'csit/data/cps-core')
-rw-r--r--csit/data/cps-core/dataOperationRequest.json12
-rw-r--r--csit/data/cps-core/test-tree.json28
-rw-r--r--csit/data/cps-core/test-tree.yang24
-rw-r--r--csit/data/cps-core/testTreePatchExample.json11
-rw-r--r--csit/data/cps-core/yang-resources.zipbin0 -> 18013 bytes
5 files changed, 75 insertions, 0 deletions
diff --git a/csit/data/cps-core/dataOperationRequest.json b/csit/data/cps-core/dataOperationRequest.json
new file mode 100644
index 000000000..1b94a299d
--- /dev/null
+++ b/csit/data/cps-core/dataOperationRequest.json
@@ -0,0 +1,12 @@
+{
+ "operations": [
+ {
+ "operation": "read",
+ "operationId": "operational-12",
+ "datastore": "ncmp-datastore:passthrough-operational",
+ "options": "(fields=schemas/schema)",
+ "resourceIdentifier": "parent/child",
+ "targetIds": ["850117873c9a4936856a5081be96e6a8"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/csit/data/cps-core/test-tree.json b/csit/data/cps-core/test-tree.json
new file mode 100644
index 000000000..8f4b52279
--- /dev/null
+++ b/csit/data/cps-core/test-tree.json
@@ -0,0 +1,28 @@
+{
+ "test-tree": {
+ "branch": [
+ {
+ "name": "LEFT/left",
+ "nest": {
+ "name": "SMALL/small",
+ "birds": [
+ "SPARROW/sparrow",
+ "Robin",
+ "Finch"
+ ]
+ }
+ },
+ {
+ "name": "Right",
+ "nest": {
+ "name": "Big",
+ "birds": [
+ "Night Owl",
+ "Raven",
+ "Crow"
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/csit/data/cps-core/test-tree.yang b/csit/data/cps-core/test-tree.yang
new file mode 100644
index 000000000..faba8a11d
--- /dev/null
+++ b/csit/data/cps-core/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/cps-core/testTreePatchExample.json b/csit/data/cps-core/testTreePatchExample.json
new file mode 100644
index 000000000..31210b628
--- /dev/null
+++ b/csit/data/cps-core/testTreePatchExample.json
@@ -0,0 +1,11 @@
+{
+ "name": "Right",
+ "nest": {
+ "name": "Bigger",
+ "birds": [
+ "Eagle",
+ "Falcon",
+ "Pigeon"
+ ]
+ }
+} \ No newline at end of file
diff --git a/csit/data/cps-core/yang-resources.zip b/csit/data/cps-core/yang-resources.zip
new file mode 100644
index 000000000..42b110d5c
--- /dev/null
+++ b/csit/data/cps-core/yang-resources.zip
Binary files differ