aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/test
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:11:41 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:11:41 +0530
commitb7d7397ecfdc13361d57a917849a6c05f9064172 (patch)
tree4a2c449ae104a723d25f02b424fff05ebe487cf0 /plugins/aai/src/test
parentcf89814911f9bc760c4b203b36783aa773503aaa (diff)
Add samples vim-register
CLI-57 Change-Id: Icefaf8b57483d70bcf884f80bae55a225fc5359c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-moco.json35
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-sample.yaml9
3 files changed, 44 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-sample-1.1.yaml
deleted file mode 100644
index 3193f6e6..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-sample-1.1.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: vim-register
-version: onap-1.1
-samples:
- sample1:
- name: Create a vim under given cloud region
- input: -x cloud-1 -y region-1 -z f962fa1e-d439-4b02-a122-cc38fd0da07b -b vim-1 -c OpenStack -e HW -q 1.0 -g http://locahost -i user -j password -n default -o tenant-1 -d
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-moco.json
new file mode 100644
index 00000000..ebbf12ed
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore/esr-system-info-list/esr-system-info/810edb5a-42e9-462d-9587-96bc9272ac27",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-bbda56c1-81d6-4a3f-b82f-4c74f9673be7",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "esr-system-info-id" : "810edb5a-42e9-462d-9587-96bc9272ac27",
+ "system-name" : "vim1",
+ "type" : "OpenStack",
+ "vendor" : "Devstack",
+ "version" : "newton",
+ "service-url" : "http://192.168.16.149/identity",
+ "user-name" : "onap",
+ "password" : "onap",
+ "system-type" : "vim",
+ "protocal" : "",
+ "ssl-cacert" : "",
+ "ssl-insecure" : "false",
+ "ip-address" : "",
+ "port" : "",
+ "cloud-domain" : "default",
+ "default-tenant" : "onap"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-sample.yaml
new file mode 100644
index 00000000..337d458d
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vim/vim-create-schema-1.1-sample.yaml
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: vim-register
+version: onap-1.1
+samples:
+ sample1:
+ name: vim-register
+ input: --cloud-name huawei-cloud --region-name bangalore --name vim1 --type OpenStack --vendor Devstack --vim-version newton --url http://192.168.16.149/identity --username onap --password onap --cloud-domain default --default-tenant onap
+ moco: vim-create-schema-1.1-moco.json
+ ouput: \ No newline at end of file