Add samples for ems-show command 57/20957/2
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:29:36 +0000 (14:59 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:33:57 +0000 (15:03 +0530)
CLI-57

Change-Id: Ida5cea0ba053814e2c06e40e2303399fca866f3f
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml [deleted file]
plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-moco.json [new file with mode: 0644]
plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-sample.yaml [new file with mode: 0644]

diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml
deleted file mode 100644 (file)
index e11753a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: ems-show
-version: onap-1.1
-samples:
-    sample1:
-        name: Show the ems
-        input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c  -y 1505298922586
-        output: |
-            +--------+------------+--------+----------+------------------+
-            |name    |type        |vendor  |version   |url               |
-            +--------+------------+--------+----------+------------------+
-            |ems-1   |OpenStack   |HW      |1.0       |http://locahost   |
-            +--------+------------+--------+----------+------------------+
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-moco.json
new file mode 100644 (file)
index 0000000..c9c09f9
--- /dev/null
@@ -0,0 +1,35 @@
+[ {\r
+  "request" : {\r
+    "method" : "get",\r
+    "uri" : "/aai/v11/external-system/esr-ems-list/esr-ems/51a480ed-649c-4c47-a84b-f966dc4f9554/esr-system-info-list/esr-system-info/51a480ed-649c-4c47-a84b-f966dc4f9554",\r
+    "headers" : {\r
+      "Authorization" : "Basic QUFJOkFBSQ==",\r
+      "X-FromAppId" : "onap-cli",\r
+      "Accept" : "application/json",\r
+      "X-TransactionId" : "req-369be4d7-7a6f-4e44-996e-1e65d8129cb4",\r
+      "Content-Type" : "application/json"\r
+    },\r
+    "json" : null\r
+  },\r
+  "response" : {\r
+    "status" : 200,\r
+    "json" : {\r
+      "esr-system-info-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554",\r
+      "system-name" : "ems1",\r
+      "type" : "ems",\r
+      "vendor" : "boco",\r
+      "version" : "1.0",\r
+      "service-url" : "http://10.0.0.1",\r
+      "user-name" : "admin",\r
+      "password" : "password",\r
+      "system-type" : "ems",\r
+      "ssl-cacert" : "",\r
+      "ssl-insecure" : false,\r
+      "ip-address" : "",\r
+      "port" : "",\r
+      "cloud-domain" : "",\r
+      "default-tenant" : "",\r
+      "resource-version" : "1509095358847"\r
+    }\r
+  }\r
+} ]
\ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-schema-1.1-sample.yaml
new file mode 100644 (file)
index 0000000..cc084b0
--- /dev/null
@@ -0,0 +1,14 @@
+onap_cli_sample_version: 1.0
+name: ems-show
+version: onap-1.1
+samples:
+  sample1:
+    name: ems-show
+    input: --ems-id 51a480ed-649c-4c47-a84b-f966dc4f9554
+    moco: ems-show-schema-1.1-moco.json
+    ouput:|
+      +------+------+--------+----------+------------------+
+      |name  |type  |vendor  |version   |url               |
+      +------+------+--------+----------+------------------+
+      |ems1  |ems   |boco    |1.0       |http://10.0.0.1   |
+      +------+------+--------+----------+------------------+