aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml14
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-moco.json44
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-sample.yaml24
3 files changed, 68 insertions, 14 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml
deleted file mode 100644
index 01ef2b93..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: service-type-list
-version: onap-1.1
-samples:
- sample1:
- name: List the configured service types in onap
- input: -h https://locahost:8443 -u AAI -p AAI
- output: |
- +--------------------------------------+--------------+------------------+
- |service-type-id |service-type |resource-version |
- +--------------------------------------+--------------+------------------+
- |26ab7af6-96cc-4c4e-814a-e533af4ef9f6 |vTest |1504086172338 |
- +--------------------------------------+--------------+------------------+
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-moco.json
new file mode 100644
index 00000000..52ced9b0
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-moco.json
@@ -0,0 +1,44 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v11/service-design-and-creation/services",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-aded3320-855c-46f6-8c28-1a14413c0585",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "service" : [ {
+ "service-id" : "2733fe6f-8725-48fa-8609-092a34106dba",
+ "service-description" : "vIMS",
+ "resource-version" : "1508827920395"
+ }, {
+ "service-id" : "bc549d9d-2335-4b07-9f03-3a85439c0bbb",
+ "service-description" : "vFW-kanag",
+ "resource-version" : "1509029699189"
+ }, {
+ "service-id" : "de1fa33f-f676-42e5-b79a-a39825c19b1d",
+ "service-description" : "test",
+ "resource-version" : "1509029708094"
+ }, {
+ "service-id" : "1482d2f2-b9e6-4421-a2f6-31959278db6f",
+ "service-description" : "vCPE",
+ "resource-version" : "1508827919819"
+ }, {
+ "service-id" : "4426c557-e012-47eb-85cc-6128fa4f55c1",
+ "service-description" : "vLB",
+ "resource-version" : "1508827918467"
+ }, {
+ "service-id" : "dd04cc4b-6283-480d-8c5a-2c7bba8497ea",
+ "service-description" : "vFW",
+ "resource-version" : "1508827917148"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-sample.yaml
new file mode 100644
index 00000000..9f04d4f1
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-schema-1.1-sample.yaml
@@ -0,0 +1,24 @@
+onap_cli_sample_version: 1.0
+name: service-type-list
+version: onap-1.1
+samples:
+ sample1:
+ name: service-type-list
+ input:
+ moco: service-type-list-schema-1.1-moco.json
+ ouput: |
+ +--------------------------------------+--------------+------------------+
+ |service-type-id |service-type |resource-version |
+ +--------------------------------------+--------------+------------------+
+ |2733fe6f-8725-48fa-8609-092a34106dba |vIMS |1508827920395 |
+ +--------------------------------------+--------------+------------------+
+ |bc549d9d-2335-4b07-9f03-3a85439c0bbb |vFW-kanag |1509029699189 |
+ +--------------------------------------+--------------+------------------+
+ |de1fa33f-f676-42e5-b79a-a39825c19b1d |test |1509029708094 |
+ +--------------------------------------+--------------+------------------+
+ |1482d2f2-b9e6-4421-a2f6-31959278db6f |vCPE |1508827919819 |
+ +--------------------------------------+--------------+------------------+
+ |4426c557-e012-47eb-85cc-6128fa4f55c1 |vLB |1508827918467 |
+ +--------------------------------------+--------------+------------------+
+ |dd04cc4b-6283-480d-8c5a-2c7bba8497ea |vFW |1508827917148 |
+ +--------------------------------------+--------------+------------------+