From 89b3744c192fc446d54483538b2b3ddc13aa5626 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:43:25 +0530 Subject: service-model-test-start updates Change-Id: I6a4868584a217e5908d6081e6c945a7993eee6e4 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- ...ervice-model-test-start-schema-dublin-moco.json | 30 +++++++++++----------- ...vice-model-test-start-schema-dublin-sample.yaml | 22 ++++------------ .../service-model-test-start-schema-dublin.yaml | 8 +++--- 3 files changed, 24 insertions(+), 36 deletions(-) (limited to 'products/onap-dublin') diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json index 02230e51..8a3e4e7c 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json @@ -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" : { } @@ -15,24 +15,24 @@ "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 diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml index 2886c35f..8af1b5e9 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml @@ -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: | + [{}] diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml index 60c3239f..c43358d9 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml @@ -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: -- cgit 1.2.3-korg