diff options
author | Luke Gleeson <luke.gleeson@est.tech> | 2023-07-20 09:47:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-07-20 09:47:48 +0000 |
commit | 00113a7e3a3c9ad7ea44258097d82431320f7605 (patch) | |
tree | 3e95037dab2c43aa0af4a01548bcb75c5fcf9cf3 /integration-test/src/test/resources | |
parent | 6a2eca2859d8b2ab88ff04663902eb7cc74b4fc1 (diff) | |
parent | ad61e283f7d981c3c8e307af871fb3a63e0cf4f9 (diff) |
Merge "Persisting a list element to a parent list (ep2)"
Diffstat (limited to 'integration-test/src/test/resources')
-rw-r--r-- | integration-test/src/test/resources/data/bookstore/bookstore.yang | 28 | ||||
-rw-r--r-- | integration-test/src/test/resources/data/bookstore/bookstoreData.json | 8 |
2 files changed, 36 insertions, 0 deletions
diff --git a/integration-test/src/test/resources/data/bookstore/bookstore.yang b/integration-test/src/test/resources/data/bookstore/bookstore.yang index e592a9c5ce..ab384de1c4 100644 --- a/integration-test/src/test/resources/data/bookstore/bookstore.yang +++ b/integration-test/src/test/resources/data/bookstore/bookstore.yang @@ -15,6 +15,34 @@ module stores { } } + list invoice { + key "ProductID"; + leaf ProductID { + type uint64; + mandatory "true"; + description + "Unique product ID. Example: 001"; + } + leaf ProductName { + type string; + mandatory "true"; + description + "Name of the Product"; + } + leaf price { + type uint64; + mandatory "true"; + description + "Price of book"; + } + leaf stock { + type boolean; + default "false"; + description + "Book in stock or not. Example value: true"; + } + } + container bookstore { leaf bookstore-name { diff --git a/integration-test/src/test/resources/data/bookstore/bookstoreData.json b/integration-test/src/test/resources/data/bookstore/bookstoreData.json index 5d22f6d675..5f66a1d002 100644 --- a/integration-test/src/test/resources/data/bookstore/bookstoreData.json +++ b/integration-test/src/test/resources/data/bookstore/bookstoreData.json @@ -1,4 +1,12 @@ { + "multiple-data-tree:invoice": [ + { + "ProductID": "1", + "ProductName": "Apple", + "price": "100", + "stock": false + } + ], "bookstore": { "bookstore-name": "Easons", "premises": { |