diff options
author | Kanagaraj Manickam <mkr1481@gmail.com> | 2019-08-29 16:44:13 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2019-08-29 16:44:13 +0530 |
commit | 1138e4e44b41a3dd22dbd44f3dfe8aadf89da4cf (patch) | |
tree | a5372874f8e319ca905d05b7c624b5fe96e174ac /products/onap-dublin/features | |
parent | 729da7d448829a8a53c3532bb7249781984c0560 (diff) |
vlm-feature-group-create updates
Change-Id: I1943d8cefc74033d0a03b079968600451335233d
Issue-ID: CLI-166
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features')
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} |