aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 09:34:16 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-10-27 04:47:51 +0000
commit81376d2c0a926e5e74a4f6105d7b605611508067 (patch)
tree74d2c0931d3d5ef398cb8dd0ec9db903d6cfda1d /plugins
parent5a9fb54d59261285c1577c2eaffb351e6c478c24 (diff)
Add sample for service-type-list
CLI-57 Change-Id: I9456f4a9d4b031433022d14eca0024a9b468ab3f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins')
-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 |
+ +--------------------------------------+--------------+------------------+