diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-30 10:10:55 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-30 10:10:55 +0530 |
commit | 3dbbf4aed6d3c620b8fff76f21a296aeeade5cbd (patch) | |
tree | 8a36767da0d73dc7723710bfa4b8b52d644cc134 /plugins/sdc/src/test/resources/onap-cli-sample | |
parent | 60ad596d8150ae73171ddb8d1c395130f94104b2 (diff) |
Add samples and command vsp-create for 1.1
CLI-57
Change-Id: I74ee2a8c305e3029c968e243c08ae09e4836f3de
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/test/resources/onap-cli-sample')
-rw-r--r-- | plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-moco.json | 38 | ||||
-rw-r--r-- | plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-sample.yaml | 13 |
2 files changed, 51 insertions, 0 deletions
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-moco.json new file mode 100644 index 00000000..6e7253f9 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-moco.json @@ -0,0 +1,38 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-software-products", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-aa703f95-a8ab-4c5c-8971-40e73df98a28", + "Content-Type" : "application/json" + }, + "json" : { + "category" : "resourceNewCategory.generic", + "vendorId" : "b1caa2ec31ba4b738cbe5aab362b35aa", + "subCategory" : "resourceNewCategory.generic.abstract", + "description" : "VSP created from CLI for vFW", + "licensingVersion" : { + "id" : "4.0", + "label" : "4.0" + }, + "licensingData" : { + "featureGroups" : [ "efea8b9817b344c4b93c45dc141f6703" ], + "licenseAgreement" : "b373c16f28854c6db9e027929ae5e5ed" + }, + "icon" : "icon", + "onboardingMethod" : "NetworkPackage", + "vendorName" : "Kanag", + "name" : "kanag-cli-vfw" + } + }, + "response" : { + "status" : 200, + "json" : { + "vspId" : "5ca119e2326045d1857ae3f04a816434" + } + } +} ]
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-sample.yaml new file mode 100644 index 00000000..aba98a14 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-create-schema-1.1-sample.yaml @@ -0,0 +1,13 @@ +onap_cli_sample_version: 1.0 +name: vsp-create +version: onap-1.1 +samples: + sample1: + name: vsp-create + input: --vsp-name kanag-cli-vfw --vsp-description VSP created from CLI for vFW --vsp-vendor-name Kanag --vsp-vendor-id b1caa2ec31ba4b738cbe5aab362b35aa --license-agreement-id b373c16f28854c6db9e027929ae5e5ed --feature-group-id efea8b9817b344c4b93c45dc141f6703 -d --vsp-license-version 4.0 + moco: vsp-create-schema-1.1-moco.json + ouput:| + |property |value | + +----------+----------------------------------+ + |ID |5ca119e2326045d1857ae3f04a816434 | + +----------+----------------------------------+ |