summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json15
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml25
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml16
3 files changed, 15 insertions, 41 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json
index d4aebb0c..b3bb4e77 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json
@@ -1,27 +1,26 @@
[ {
"request" : {
"method" : "post",
- "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/feature-groups",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d572f583bf224b4c93b99105cd35b0a9/versions/496cc167b6cf44c3b7818c95a1d9e036/feature-groups",
"headers" : {
"Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
"USER_ID" : "cs0008",
- "X-TransactionId" : "req-0033cd99-1c03-4f1b-acf1-e2262e0b7027",
+ "X-TransactionId" : "req-969b3e0d-a7a7-4947-bbfa-3925637e5842",
"Content-Type" : "application/json"
},
"json" : {
- "name" : "philip-feature-grp",
- "addedLicenseKeyGroupsIds" : [ "51466fa44cb346eda6881176440eee5d" ],
- "addedEntitlementPoolsIds" : [ "8c70182a9c4641e79477708ef6ed6984" ],
- "partNumber" : "itohan-part",
- "description" : "philip-feature-grp"
+ "name" : "ocompvtpvendor Feature group",
+ "addedLicenseKeyGroupsIds" : [ "0c36608f4bab42c298a17388d7ec6727" ],
+ "addedEntitlementPoolsIds" : [ "7f3150863aca4d82b837d2d1980ef064" ],
+ "partNumber" : "OCOMP"
}
},
"response" : {
"status" : 200,
"json" : {
- "value" : "457e9905f32544cca5351e86cc2e7958"
+ "value" : "880c355b9b374ec08db60906f86a7c15"
}
}
} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml
index 28e31f5b..09474d07 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-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: -x
+name: vlm-feature-group-create
version: onap-dublin
samples:
sample1:
- name: -x
- input: philip-feature-grp -y 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -z philip-feature-grp -g 51466fa44cb346eda6881176440eee5d -b 8c70182a9c4641e79477708ef6ed6984 -c itohan-part -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ name: vlm-feature-group-create
+ input: --format json --vlm-id d572f583bf224b4c93b99105cd35b0a9 --name ocompvtpvendor Feature group --vlm-version 496cc167b6cf44c3b7818c95a1d9e036 --vlm-key-group-id 0c36608f4bab42c298a17388d7ec6727 --part-number OCOMP --vlm-entitle-pool-id 7f3150863aca4d82b837d2d1980ef064
moco: vlm-feature-group-create-schema-dublin-moco.json
output: |
- +----------+----------------------------------+
- |property |value |
- +----------+----------------------------------+
- |ID |457e9905f32544cca5351e86cc2e7958 |
- +----------+----------------------------------+
+ {"id":"880c355b9b374ec08db60906f86a7c15"}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
index b4559d27..d3cd45a0 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create feature group Pool
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -41,12 +41,6 @@ parameters:
short_option: e
long_option: vlm-version
is_optional: false
- - name: description
- description: Description for feature group
- type: string
- short_option: z
- long_option: description
- is_optional: false
- name: vlm-key-group-id
description: VLM keygroup
type: string
@@ -69,7 +63,7 @@ parameters:
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: Feature group ID
scope: short
type: string
@@ -82,10 +76,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
method: POST
- body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}", "description": "${description}"}'
+ body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value}
- sample_response:
- body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'
+ id: $b{$.value}