Samples for ems-register 53/20953/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:09:58 +0000 (14:39 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 27 Oct 2017 09:09:58 +0000 (14:39 +0530)
CLI-57

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

diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml
deleted file mode 100644 (file)
index 2856ba6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: ems-register
-version: onap-1.1
-samples:
-    sample1:
-        name: Create a ems
-        input: -z f962fa1e-d439-4b02-a122-cc38fd0da07c -b ems-1 -c OpenStack -e HW -q 1.0 -g http://locahost -i user -j password -x remote-path -d
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json
new file mode 100644 (file)
index 0000000..d14653f
--- /dev/null
@@ -0,0 +1,42 @@
+[ {\r
+  "request" : {\r
+    "method" : "put",\r
+    "uri" : "/aai/v11/external-system/esr-ems-list/esr-ems/51a480ed-649c-4c47-a84b-f966dc4f9554",\r
+    "headers" : {\r
+      "Authorization" : "Basic QUFJOkFBSQ==",\r
+      "X-FromAppId" : "onap-cli",\r
+      "Accept" : "application/json",\r
+      "X-TransactionId" : "req-8552f11b-5e79-4d98-9e05-ccc4e66c42c0",\r
+      "Content-Type" : "application/json"\r
+    },\r
+    "json" : {\r
+      "ems-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554",\r
+      "passive" : true,\r
+      "remote-path" : "sample",\r
+      "esr-system-info-list" : {\r
+        "esr-system-info" : [ {\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
+          "protocal" : "",\r
+          "ssl-cacert" : "",\r
+          "ssl-insecure" : "",\r
+          "ip-address" : "",\r
+          "port" : "",\r
+          "cloud-domain" : "",\r
+          "default-tenant" : ""\r
+        } ]\r
+      }\r
+    }\r
+  },\r
+  "response" : {\r
+    "status" : 201,\r
+    "json" : null\r
+  }\r
+} ]
\ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml
new file mode 100644 (file)
index 0000000..f0306ca
--- /dev/null
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: ems-register
+version: onap-1.1
+samples:
+  sample1:
+    name: ems-register
+    input: --name ems1 --type ems --vendor boco --ems-version 1.0 --url http://10.0.0.1 --username admin --password password --remote-path sample
+    moco: ems-create-schema-1.1-moco.json
+    ouput:
\ No newline at end of file