VLM create updates 18/94518/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 10:24:06 +0000 (15:54 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 10:24:06 +0000 (15:54 +0530)
Issue-ID: CLI-166

Change-Id: I58f580003056769078d19cb915b8b5a6002819e6
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-moco.json
products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-sample.yaml
products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml

index da03ee3..1b6359f 100644 (file)
@@ -7,21 +7,21 @@
       "X-FromAppId" : "ONAP CLI",
       "Accept" : "application/json",
       "USER_ID" : "cs0008",
-      "X-TransactionId" : "req-0b3114ea-c98a-4035-b0f4-9f522f0188d4",
+      "X-TransactionId" : "req-c3ff5864-dab6-4026-a298-ce11eb9a11c5",
       "Content-Type" : "application/json"
     },
     "json" : {
-      "vendorName" : "philip-vendor",
-      "description" : "",
+      "vendorName" : "ocompvtpvendor",
+      "description" : "Created by Open Command Platform - OCOMP",
       "iconRef" : "icon"
     }
   },
   "response" : {
     "status" : 200,
     "json" : {
-      "itemId" : "6b33c26b3a924b2789fa17fabd4a292d",
+      "itemId" : "d572f583bf224b4c93b99105cd35b0a9",
       "version" : {
-        "id" : "2b683bedebeb4874a9c2a82939c77f0d",
+        "id" : "496cc167b6cf44c3b7818c95a1d9e036",
         "name" : "1.0",
         "description" : "Initial version",
         "status" : "Draft"
index 1dcfa93..3b81fe6 100644 (file)
@@ -1,29 +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-create
 version: onap-dublin
 samples:
   sample1:
-    name: -x
-    input: philip-vendor -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+    name: vlm-create
+    input: --format json --vendor-name ocompvtpvendor --description Created by Open Command Platform - OCOMP
     moco: vlm-create-schema-dublin-moco.json
     output: |
-      +----------+----------------------------------+
-      |property  |value                             |
-      +----------+----------------------------------+
-      |ID        |6b33c26b3a924b2789fa17fabd4a292d  |
-      +----------+----------------------------------+
-      |version   |2b683bedebeb4874a9c2a82939c77f0d  |
-      +----------+----------------------------------+
+      {"id":"d572f583bf224b4c93b99105cd35b0a9","version":"496cc167b6cf44c3b7818c95a1d9e036"}
index ebe1626..ca09bd2 100644 (file)
@@ -18,7 +18,7 @@ description: Create License Model
 
 info:
   product: onap-dublin
-  service: sdc
+  service: sdc.onboarding
   author: ONAP CLI Team onap-discuss@lists.onap.org
 
 
@@ -38,7 +38,7 @@ parameters:
 results:
   direction: portrait
   attributes:
-    - name: ID
+    - name: id
       description: License Model ID
       scope: short
       type: uuid
@@ -59,5 +59,5 @@ http:
   success_codes:
     - 200
   result_map:
-    ID: $b{$.itemId}
+    id: $b{$.itemId}
     version: $b{$.version.id}
\ No newline at end of file