From 8c9b4a24b4841154a2d08f506e2f7beca4f6fc31 Mon Sep 17 00:00:00 2001 From: DylanB95EST Date: Tue, 23 Nov 2021 15:16:15 +0000 Subject: 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 --- csit/data/bookstoreAddEntry.json | 19 ------------------- csit/data/bookstoreCreateExample.json | 34 ++++++++++++++++++++++++++++++++++ csit/data/bookstoreUpdateExample.json | 8 ++++++++ 3 files changed, 42 insertions(+), 19 deletions(-) delete mode 100644 csit/data/bookstoreAddEntry.json create mode 100644 csit/data/bookstoreCreateExample.json create mode 100644 csit/data/bookstoreUpdateExample.json (limited to 'csit/data') 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 -- cgit 1.2.3-korg