Add samples for cloud-create command 09/20809/2
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 26 Oct 2017 14:28:31 +0000 (19:58 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 26 Oct 2017 14:34:17 +0000 (20:04 +0530)
CLI-57

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

diff --git a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-moco.json
new file mode 100644 (file)
index 0000000..223ebd2
--- /dev/null
@@ -0,0 +1,24 @@
+[ {
+  "request" : {
+    "method" : "put",
+    "uri" : "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "onap-cli",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-63eebfa7-ebdb-4707-9208-a159d2f53c6e",
+      "Content-Type" : "application/json"
+    },
+    "json" : {
+      "sriov-automation" : false,
+      "cloud-region-id" : "bangalore",
+      "cloud-owner" : "huawei-cloud",
+      "new-attribute-for-demo" : "blah",
+      "number-attribute-for-demo" : 1
+    }
+  },
+  "response" : {
+    "status" : 201,
+    "json" : null
+  }
+} ]
\ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-sample.yaml
new file mode 100644 (file)
index 0000000..ad3a521
--- /dev/null
@@ -0,0 +1,10 @@
+onap_cli_sample_version: 1.0
+name: cloud-create
+version: onap-1.1
+samples:
+  sample1:
+    name: cloud-create
+    input: --cloud-name huawei-cloud --region-name bangalore
+    moco: cloud-create-schema-1.1-moco.json
+    ouput: |
+