summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:44:11 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:44:11 +0530
commit729da7d448829a8a53c3532bb7249781984c0560 (patch)
treea07ac78a0a643c97963f8b7275187117c9875dea /products/onap-dublin/features
parent43ecfc89dcf4ab2ecddfecb32d4b3660b83cdb6a (diff)
vlm-entitlement-pool-create updates
Change-Id: If7e191f7167fdad761ec656dbf65327025901007 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json14
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml25
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml24
3 files changed, 20 insertions, 43 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json
index 2509bea0..7eafd25d 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json
@@ -1,30 +1,30 @@
[ {
"request" : {
"method" : "post",
- "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/entitlement-pools",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d572f583bf224b4c93b99105cd35b0a9/versions/496cc167b6cf44c3b7818c95a1d9e036/entitlement-pools",
"headers" : {
"Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
"USER_ID" : "cs0008",
- "X-TransactionId" : "req-47de9a0c-f2c9-4355-a8ed-0ce066cac513",
+ "X-TransactionId" : "req-5f019d90-52bb-402f-b742-f5de970b3f58",
"Content-Type" : "application/json"
},
"json" : {
- "name" : "philip-pool",
+ "name" : "ocompvtpvendor Entitlement Pool",
"time" : {
"choice" : "",
"other" : ""
},
- "startDate" : "03/15/2019",
- "expiryDate" : "12/31/2030",
- "manufacturerReferenceNumber" : "philip-vendor"
+ "startDate" : "08/29/2019",
+ "expiryDate" : "08/30/2019",
+ "manufacturerReferenceNumber" : "OCOMP"
}
},
"response" : {
"status" : 200,
"json" : {
- "value" : "8c70182a9c4641e79477708ef6ed6984"
+ "value" : "7f3150863aca4d82b837d2d1980ef064"
}
}
} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml
index 6decda2f..07c933ee 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-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-entitlement-pool-create
version: onap-dublin
samples:
sample1:
- name: -x
- input: philip-pool -y 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -z philip-pool -k philip-vendor -g 12/31/2030 -l 03/15/2019 -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ name: vlm-entitlement-pool-create
+ input: --format json --vlm-id d572f583bf224b4c93b99105cd35b0a9 --name ocompvtpvendor Entitlement Pool --start-date 08/29/2019 --expiry-date 08/30/2019 --vlm-version 496cc167b6cf44c3b7818c95a1d9e036 --manufacture-reference-number OCOMP
moco: vlm-entitlement-pool-create-schema-dublin-moco.json
output: |
- +----------+----------------------------------+
- |property |value |
- +----------+----------------------------------+
- |ID |8c70182a9c4641e79477708ef6ed6984 |
- +----------+----------------------------------+
+ {"id":"7f3150863aca4d82b837d2d1980ef064"}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
index 6bcf1339..86f99e23 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create Entitlement Pool
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -41,35 +41,29 @@ parameters:
short_option: e
long_option: vlm-version
is_optional: false
- - name: description
- description: Description for Entitlement Pool
- type: string
- short_option: z
- long_option: description
- is_optional: false
- name: manufacture-reference-number
description: Manufature Reference Number
type: string
short_option: k
long_option: manufacture-reference-number
is_optional: false
- - name: startDate
+ - name: start-date
description: License start date (MM/DD/YYYY)
type: string
short_option: l
- long_option: startDate
+ long_option: start-date
is_optional: false
- - name: expiryDate
+ - name: expiry-date
description: License end date (MM/DD/YYYY)
type: string
short_option: g
- long_option: expiryDate
- is_optional: false
+ long_option: expiry-date
+ is_optional: false
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: Entitlement Pool ID
scope: short
type: string
@@ -82,8 +76,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
method: POST
- body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${startDate}","expiryDate":"${expiryDate}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
+ body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value}
+ id: $b{$.value}