aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:33:47 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:33:47 +0530
commitfdf327e108079eac0e0e0ea941eb7ff2c138e753 (patch)
tree1c76150099dc90a8d9151cef88fb568cee504174
parent8cccb5920ec6e09bfd00e5b4de0f0377eadd00f2 (diff)
Add sample for vnfm-create
CLI-57 Change-Id: I02c4045c38c76bde8c317feddc884dc7e2f9f174 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-moco.json42
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-sample.yaml9
3 files changed, 51 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-sample-1.1.yaml
deleted file mode 100644
index 54944d41..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-sample-1.1.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: vnfm-register
-version: onap-1.1
-samples:
- sample1:
- name: Create a vnfm
- input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c -y f962fa1e-d439-4b02-a122-cc38fd0da07c -b vnfm-2 -c OpenStack -e HW -q 1.0 -g http://locahost -i user -j password -d
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-moco.json
new file mode 100644
index 00000000..d43db5b9
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-moco.json
@@ -0,0 +1,42 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/c0ecd788-22f4-49a4-a969-68051cd517e7",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-99986f20-ae09-41f7-95a3-a962cda7b24e",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "vnfm-id" : "c0ecd788-22f4-49a4-a969-68051cd517e7",
+ "vim-id" : "acc5e14e-1320-4ab5-97fe-b7cc82ad03f2",
+ "certificate-url" : "",
+ "esr-system-info-list" : {
+ "esr-system-info" : [ {
+ "esr-system-info-id" : "c0ecd788-22f4-49a4-a969-68051cd517e7",
+ "system-name" : "vnfm1",
+ "type" : "OpenStack",
+ "vendor" : "ONAP",
+ "version" : "1.0",
+ "service-url" : "http://10.0.1.1",
+ "user-name" : "admin",
+ "password" : "password",
+ "system-type" : "vnfm",
+ "protocal" : "",
+ "ssl-cacert" : "",
+ "ssl-insecure" : "",
+ "ip-address" : "",
+ "port" : "",
+ "cloud-domain" : "",
+ "default-tenant" : ""
+ } ]
+ }
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-sample.yaml
new file mode 100644
index 00000000..9692ea4e
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-create-schema-1.1-sample.yaml
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: vnfm-register
+version: onap-1.1
+samples:
+ sample1:
+ name: vnfm-register
+ input: --vim-id acc5e14e-1320-4ab5-97fe-b7cc82ad03f2 --name vnfm1 --type OpenStack --vendor ONAP --vnfm-version 1.0 --url http://10.0.1.1 --username admin --password password
+ moco: vnfm-create-schema-1.1-moco.json
+ ouput: \ No newline at end of file