service-model-test-start updates 39/94539/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:13:25 +0000 (16:43 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:13:25 +0000 (16:43 +0530)
Change-Id: I6a4868584a217e5908d6081e6c945a7993eee6e4
Issue-ID: CLI-166
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json
products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml
products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml

index 02230e5..8a3e4e7 100644 (file)
@@ -1,13 +1,13 @@
 [ {
   "request" : {
     "method" : "post",
-    "uri" : "/sdc2/rest/v1/catalog/services/fb8ffb35-a8e3-493f-9b9b-b31321b68dfa/lifecycleState/startCertification",
+    "uri" : "/sdc2/rest/v1/catalog/services/58620731-40a9-4f8e-95db-ef9fc478a705/lifecycleState/startCertification",
     "headers" : {
       "Authorization" : "Basic am0wMDA3OmRlbW8xMjM0NTYh",
       "X-FromAppId" : "ONAP CLI",
       "Accept" : "application/json",
       "USER_ID" : "jm0007",
-      "X-TransactionId" : "req-4525f3b4-6bf0-4026-b383-53cfda035336",
+      "X-TransactionId" : "req-c64f9c2a-52d2-47ce-ac7a-8935adf1e32c",
       "Content-Type" : "application/json"
     },
     "json" : { }
   "response" : {
     "status" : 200,
     "json" : {
-      "uniqueId" : "fb8ffb35-a8e3-493f-9b9b-b31321b68dfa",
-      "name" : "cli-service",
+      "uniqueId" : "58620731-40a9-4f8e-95db-ef9fc478a705",
+      "name" : "vgwocompvtp Service",
       "version" : "0.1",
       "isHighestVersion" : true,
-      "creationDate" : 1553192910482,
-      "lastUpdateDate" : 1553194117643,
-      "description" : "create service model with cli",
+      "creationDate" : 1567068764463,
+      "lastUpdateDate" : 1567068805262,
+      "description" : "Created by Open Command Platform - OCOMP",
       "lifecycleState" : "CERTIFICATION_IN_PROGRESS",
-      "tags" : [ "cli-service" ],
+      "tags" : [ "vgwocompvtp Service" ],
       "icon" : "defaulticon",
-      "normalizedName" : "cliservice",
-      "systemName" : "CliService",
+      "normalizedName" : "vgwocompvtpservice",
+      "systemName" : "VgwocompvtpService",
       "contactId" : "cs0008",
       "allVersions" : {
-        "0.1" : "fb8ffb35-a8e3-493f-9b9b-b31321b68dfa"
+        "0.1" : "58620731-40a9-4f8e-95db-ef9fc478a705"
       },
-      "projectCode" : "000000",
-      "invariantUUID" : "4dd682d8-4c3c-4f6c-96b1-9e19eed5987c",
+      "projectCode" : "OCOMP",
+      "invariantUUID" : "1b6d7385-916d-4f96-aebd-f2cd03c59079",
       "componentType" : "SERVICE",
       "categories" : [ {
         "name" : "Network L1-3",
@@ -53,8 +53,8 @@
       "environmentContext" : "General_Revenue-Bearing",
       "instantiationType" : "A-la-carte",
       "vspArchived" : false,
-      "archived" : false,
-      "uuid" : "788289e1-161a-42b8-89ed-14adde63c600"
+      "uuid" : "ea98398d-1858-4a22-b227-74eb0e60df49",
+      "archived" : false
     }
   }
 } ]
\ No newline at end of file
index 2886c35..8af1b5e 100644 (file)
@@ -1,22 +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: -b
+name: service-model-test-start
 version: onap-dublin
 samples:
   sample1:
-    name: -b
-    input: fb8ffb35-a8e3-493f-9b9b-b31321b68dfa -u jm0007 -p demo123456! -m http://10.12.6.129:30205
+    name: service-model-test-start
+    input: --format json --service-id 58620731-40a9-4f8e-95db-ef9fc478a705
     moco: service-model-test-start-schema-dublin-moco.json
-    output:
\ No newline at end of file
+    output: |
+      [{}]
index 60c3239..c43358d 100644 (file)
@@ -18,15 +18,15 @@ description: Starts the testing of a Service model in SDC
 
 info:
   product: onap-dublin
-  service: sdc
+  service: sdc.catalog
   author: ONAP CLI Team onap-discuss@lists.onap.org
 
 
 parameters:
-  - name: service-model-id
+  - name: service-id
     description: Service model ID
     type: string
-    long_option: service-model-id
+    long_option: service-id
     short_option: b
     is_optional: true
 
@@ -37,7 +37,7 @@ http:
     auth: basic
     mode: direct
   request:
-    uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/startCertification
+    uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/startCertification
     method: POST
     body: '{}'
   success_codes: