diff options
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2020-11-06 10:20:47 -0800 |
---|---|---|
committer | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2020-11-06 10:20:47 -0800 |
commit | 7f6616e5d7e2759bc21fad0e363e4e356a8ec8f9 (patch) | |
tree | a3f327d7687ff738f1c6e5fd8eb86d457d33a28e /cps-service/src/test/resources | |
parent | 1d05f0ebdf4a0e5107b2dd352f5303dc9dad907c (diff) |
Move cps files to root dir
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'cps-service/src/test/resources')
-rw-r--r-- | cps-service/src/test/resources/bookstore.json | 34 | ||||
-rw-r--r-- | cps-service/src/test/resources/bookstore.yang | 50 | ||||
-rw-r--r-- | cps-service/src/test/resources/invalid.yang | 1 | ||||
-rw-r--r-- | cps-service/src/test/resources/someOtherFile.txt | 0 |
4 files changed, 85 insertions, 0 deletions
diff --git a/cps-service/src/test/resources/bookstore.json b/cps-service/src/test/resources/bookstore.json new file mode 100644 index 0000000000..44d5d424cd --- /dev/null +++ b/cps-service/src/test/resources/bookstore.json @@ -0,0 +1,34 @@ +{ + "test:bookstore":{ + "categories":[ + { + "name":"web", + "books":[ + { + "authors":[ + "Toine Siebelink","David Lang" + ], + "lang":"en", + "price":"123456", + "pub_year":"2020", + "title":"My first book" + } + ] + }, + { + "name":"art", + "books":[ + { + "authors":[ + "Test" + ], + "lang":"en", + "price":"1234", + "pub_year":"2020", + "title":"My 2nd book" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/cps-service/src/test/resources/bookstore.yang b/cps-service/src/test/resources/bookstore.yang new file mode 100644 index 0000000000..01eac5f339 --- /dev/null +++ b/cps-service/src/test/resources/bookstore.yang @@ -0,0 +1,50 @@ +module bookstore { + yang-version 1.1; + + namespace "org:onap:ccsdk:sample"; + + prefix book-store; + + revision "2020-09-15" { + description + "Sample Model"; + } + + typedef year { + type uint16 { + range "1000..9999"; + } + } + + container bookstore { + + list categories { + + key name; + + leaf name { + type string; + } + + list books { + key title; + + leaf title { + type string; + } + leaf lang { + type string; + } + leaf-list authors { + type string; + } + leaf pub_year { + type year; + } + leaf price { + type uint64; + } + } + } + } +} diff --git a/cps-service/src/test/resources/invalid.yang b/cps-service/src/test/resources/invalid.yang new file mode 100644 index 0000000000..66cfd10796 --- /dev/null +++ b/cps-service/src/test/resources/invalid.yang @@ -0,0 +1 @@ +no yang at all! diff --git a/cps-service/src/test/resources/someOtherFile.txt b/cps-service/src/test/resources/someOtherFile.txt new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/cps-service/src/test/resources/someOtherFile.txt |