diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-12-07 15:33:09 +0000 |
---|---|---|
committer | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-12-12 10:37:19 +0000 |
commit | 14d37304d8b83efc099ba19d6f3e7d5d53fead29 (patch) | |
tree | 5aac3fa33056f1d85be4b77a0c2809862569dee5 /csit/data/ncmp | |
parent | 93f2c3ff203d78d8cddae7878d16fe2f55661655 (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/ncmp')
-rw-r--r-- | csit/data/ncmp/bookstoreCreateExample.json | 34 | ||||
-rw-r--r-- | csit/data/ncmp/bookstorePatchExample.json | 59 | ||||
-rw-r--r-- | csit/data/ncmp/bookstoreUpdateExample.json | 8 |
3 files changed, 101 insertions, 0 deletions
diff --git a/csit/data/ncmp/bookstoreCreateExample.json b/csit/data/ncmp/bookstoreCreateExample.json new file mode 100644 index 0000000000..ff8e202e30 --- /dev/null +++ b/csit/data/ncmp/bookstoreCreateExample.json @@ -0,0 +1,34 @@ +{ + "categories": [ + { + "code": "01", + "name": "Sci-Fi", + "books": [ + { + "title": "A Sci-Fi book", + "lang": "English", + "authors": [ + "Joe & Rahul" + ], + "pub_year": "2001", + "price": "1000" + } + ] + }, + { + "code": "02", + "name": "Horror", + "books": [ + { + "title": "A Horror book", + "lang": "English", + "authors": [ + "Joe & Rahul" + ], + "pub_year": "2003", + "price": "2000" + } + ] + } + ] +}
\ No newline at end of file diff --git a/csit/data/ncmp/bookstorePatchExample.json b/csit/data/ncmp/bookstorePatchExample.json new file mode 100644 index 0000000000..039ea4bcdd --- /dev/null +++ b/csit/data/ncmp/bookstorePatchExample.json @@ -0,0 +1,59 @@ +{ + "ietf-restconf:yang-patch":{ + "patch-id":"patch-1", + "edit":[ + { + "edit-id":"edit1", + "operation":"merge", + "target":"/", + "value":{ + "bookstore": { + "categories": [ + { + "code": "100", + "books": [ + { + "title": "A new book in a new category", + "pub_year": "2019", + "authors": [ + "Rahul" + ], + "lang": "English", + "price": "2011" + } + ], + "name": "Category100" + } + ] + } + } + }, + { + "edit-id":"edit2", + "operation":"merge", + "target":"/", + "value":{ + "bookstore": { + "categories": [ + { + "code": "02", + "name": "Horror", + "books": [ + { + "title": "A New book in existing category", + "lang": "English", + "authors": [ + "Joe & Rahul" + ], + "pub_year": "2003", + "price": "2000" + } + ] + } + ] + } + } + } + ] + } +}
\ No newline at end of file diff --git a/csit/data/ncmp/bookstoreUpdateExample.json b/csit/data/ncmp/bookstoreUpdateExample.json new file mode 100644 index 0000000000..2614b59222 --- /dev/null +++ b/csit/data/ncmp/bookstoreUpdateExample.json @@ -0,0 +1,8 @@ +{ + "categories": [ + { + "code": "01", + "name": "Updated Sci-Fi Category Name" + } + ] +}
\ No newline at end of file |