aboutsummaryrefslogtreecommitdiffstats
path: root/csit/data
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2021-11-23 15:16:15 +0000
committerDylanB95EST <dylan.byrne@est.tech>2021-12-08 12:38:42 +0000
commit8c9b4a24b4841154a2d08f506e2f7beca4f6fc31 (patch)
treec004cdd1e407b4ef5a6a840b9e39910469237df1 /csit/data
parent043a0ed45530842a8606a675cb71078ab055d2d5 (diff)
Add CSIT Tests for Update Operation on Passthrough-running 2/3
Add robot integration test for update scenario in Passthrough-running Modify existing write data test json body to include better examples Issue-ID: CPS-768 Change-Id: Ie769a33a86ec1a8384585484c54598189fdd5124 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'csit/data')
-rw-r--r--csit/data/bookstoreAddEntry.json19
-rw-r--r--csit/data/bookstoreCreateExample.json34
-rw-r--r--csit/data/bookstoreUpdateExample.json8
3 files changed, 42 insertions, 19 deletions
diff --git a/csit/data/bookstoreAddEntry.json b/csit/data/bookstoreAddEntry.json
deleted file mode 100644
index 86e9a5b3d6..0000000000
--- a/csit/data/bookstoreAddEntry.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "stores:categories": [
- {
- "stores:code": "ISBN200123",
- "stores:name": "library",
- "stores:books": [
- {
- "stores:title": "A good book",
- "stores:lang": "English",
- "stores:authors": [
- "Joe & Rahul"
- ],
- "stores:pub_year": "2001",
- "stores:price": "1000"
- }
- ]
- }
- ]
-} \ No newline at end of file
diff --git a/csit/data/bookstoreCreateExample.json b/csit/data/bookstoreCreateExample.json
new file mode 100644
index 0000000000..ff8e202e30
--- /dev/null
+++ b/csit/data/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/bookstoreUpdateExample.json b/csit/data/bookstoreUpdateExample.json
new file mode 100644
index 0000000000..2614b59222
--- /dev/null
+++ b/csit/data/bookstoreUpdateExample.json
@@ -0,0 +1,8 @@
+{
+ "categories": [
+ {
+ "code": "01",
+ "name": "Updated Sci-Fi Category Name"
+ }
+ ]
+} \ No newline at end of file