diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-26 19:58:31 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-26 20:04:17 +0530 |
commit | b7acd1482db1234fa558f6ce1ee9f3e25cbe2392 (patch) | |
tree | 458baddcda510cccd42c82892e02786471034c9d | |
parent | ef7de3edf23a0c6fba6e6fb3e175798adc532d78 (diff) |
Add samples for cloud-create command
CLI-57
Change-Id: Ia90bd215f982719b82efea4561af6117e5d42b3b
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2 files changed, 34 insertions, 0 deletions
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 index 00000000..223ebd26 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-moco.json @@ -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 index 00000000..ad3a521e --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-schema-1.1-sample.yaml @@ -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: | + |