Add sample for vnfm-show 49/20949/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:05:40 +0000 (14:35 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:05:40 +0000 (14:35 +0530)
CLI-57

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

diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml
deleted file mode 100644 (file)
index 35c38d2..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: vnfm-show
-version: onap-1.1
-samples:
-    sample1:
-        name: Show the vnfm
-        input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c
-        output: |
-            +----------+------------------+
-            |property  |value             |
-            +----------+------------------+
-            |name      |vnfm-2            |
-            +----------+------------------+
-            |type      |OpenStack         |
-            +----------+------------------+
-            |vendor    |HW                |
-            +----------+------------------+
-            |version   |1.0               |
-            +----------+------------------+
-            |url       |http://locahost   |
-            +----------+------------------+
-
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json
new file mode 100644 (file)
index 0000000..9eb10b3
--- /dev/null
@@ -0,0 +1,35 @@
+[ {\r
+  "request" : {\r
+    "method" : "get",\r
+    "uri" : "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/c0ecd788-22f4-49a4-a969-68051cd517e7/esr-system-info-list/esr-system-info/c0ecd788-22f4-49a4-a969-68051cd517e7",\r
+    "headers" : {\r
+      "Authorization" : "Basic QUFJOkFBSQ==",\r
+      "X-FromAppId" : "onap-cli",\r
+      "Accept" : "application/json",\r
+      "X-TransactionId" : "req-c87981f1-c110-4d29-887e-12e44b96507c",\r
+      "Content-Type" : "application/json"\r
+    },\r
+    "json" : null\r
+  },\r
+  "response" : {\r
+    "status" : 200,\r
+    "json" : {\r
+      "esr-system-info-id" : "c0ecd788-22f4-49a4-a969-68051cd517e7",\r
+      "system-name" : "vnfm1",\r
+      "type" : "OpenStack",\r
+      "vendor" : "ONAP",\r
+      "version" : "1.0",\r
+      "service-url" : "http://10.0.1.1",\r
+      "user-name" : "admin",\r
+      "password" : "password",\r
+      "system-type" : "vnfm",\r
+      "ssl-cacert" : "",\r
+      "ssl-insecure" : false,\r
+      "ip-address" : "",\r
+      "port" : "",\r
+      "cloud-domain" : "",\r
+      "default-tenant" : "",\r
+      "resource-version" : "1509094329093"\r
+    }\r
+  }\r
+} ]
\ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml
new file mode 100644 (file)
index 0000000..93b09e8
--- /dev/null
@@ -0,0 +1,22 @@
+onap_cli_sample_version: 1.0
+name: vnfm-show
+version: onap-1.1
+samples:
+  sample1:
+    name: vnfm-show
+    input: --vnfm-id c0ecd788-22f4-49a4-a969-68051cd517e7
+    moco: vnfm-show-schema-1.1-moco.json
+    ouput:|
+      +----------+------------------+
+      |property  |value             |
+      +----------+------------------+
+      |name      |vnfm1             |
+      +----------+------------------+
+      |type      |OpenStack         |
+      +----------+------------------+
+      |vendor    |ONAP              |
+      +----------+------------------+
+      |version   |1.0               |
+      +----------+------------------+
+      |url       |http://10.0.1.1   |
+      +----------+------------------+