summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:44:16 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:44:16 +0530
commit3b694135aa0b05c91ee478f40c9192aaae28f371 (patch)
tree8c52c3395ed52ff8c7c7296f2d5bad1212e79ae8 /products/onap-dublin
parent871d256b4b94ded9052d64b485c373220c201742 (diff)
vlm-key-group-create updates
Change-Id: I9832ad0457f88f905191490d221cb35bb54db5f4 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json9
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml25
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml14
3 files changed, 12 insertions, 36 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json
index f9654b9e..75da79f9 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json
@@ -1,25 +1,24 @@
[ {
"request" : {
"method" : "post",
- "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/license-key-groups",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d572f583bf224b4c93b99105cd35b0a9/versions/496cc167b6cf44c3b7818c95a1d9e036/license-key-groups",
"headers" : {
"Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
"USER_ID" : "cs0008",
- "X-TransactionId" : "req-5b5c1feb-062f-42d2-876d-0d748f460015",
+ "X-TransactionId" : "req-f6c9d577-764c-4411-b0d6-1983d1312d0d",
"Content-Type" : "application/json"
},
"json" : {
- "description" : "",
- "name" : "philip-key-grp",
+ "name" : "ocompvtpvendor Key goroup",
"type" : "Universal"
}
},
"response" : {
"status" : 200,
"json" : {
- "value" : "51466fa44cb346eda6881176440eee5d"
+ "value" : "0c36608f4bab42c298a17388d7ec6727"
}
}
} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml
index 29c0cfda..25a2e39e 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml
@@ -1,27 +1,10 @@
-# Copyright © Intel Corporation 2019
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
open_cli_sample_version: 1.0
-name: -c
+name: vlm-key-group-create
version: onap-dublin
samples:
sample1:
- name: -c
- input: 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -x philip-key-grp -y Universal -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ name: vlm-key-group-create
+ input: --format json --vlm-id d572f583bf224b4c93b99105cd35b0a9 --type Universal --name ocompvtpvendor Key goroup --vlm-version 496cc167b6cf44c3b7818c95a1d9e036
moco: vlm-key-group-create-schema-dublin-moco.json
output: |
- +----------+----------------------------------+
- |property |value |
- +----------+----------------------------------+
- |ID |51466fa44cb346eda6881176440eee5d |
- +----------+----------------------------------+
+ {"id":"0c36608f4bab42c298a17388d7ec6727"}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
index d1e5f16c..b82220e8 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create License Key Group
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -48,17 +48,11 @@ parameters:
long_option: type
is_optional: false
default_value: Universal
- - name: description
- description: Description for License Key Group
- type: string
- short_option: z
- long_option: description
- is_optional: true
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: License Model ID
scope: short
type: string
@@ -71,8 +65,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
method: POST
- body: '{"description": "${description}", "name": "${name}", "type": "${type}"}'
+ body: '{"name": "${name}", "type": "${type}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value} \ No newline at end of file
+ id: $b{$.value} \ No newline at end of file