From 480590dae302132fb934b4205c0d20028f22cc27 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 19 Mar 2018 16:08:31 +0530 Subject: CLI: service-model-certify-start beijing Change-Id: I000f9cd4435ab51e6fa7af78bf62983d0dd2a6ac Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 --- ...ce-model-certify-start-schema-beijing-moco.json | 54 ++++++++++++++++++++++ ...-model-certify-start-schema-beijing-sample.yaml | 23 +++++++++ ...service-model-certify-start-schema-beijing.yaml | 45 ++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-moco.json create mode 100644 products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-sample.yaml create mode 100644 products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-start-schema-beijing.yaml (limited to 'products/onap-beijing/features/sdc/src/main') diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-moco.json new file mode 100644 index 00000000..1f1330d6 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-moco.json @@ -0,0 +1,54 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/services/7b427dbf-685b-4ba9-8838-a9b3b3c8e584/lifecycleState/startCertification", + "headers" : { + "Authorization" : "Basic am0wMDA3OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "jm0007", + "X-TransactionId" : "req-72f43c29-97b2-4285-bfde-871965ebe869", + "Content-Type" : "application/json" + }, + "json" : { } + }, + "response" : { + "status" : 200, + "json" : { + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584", + "name" : "kanag-cli-VLB", + "version" : "0.1", + "isHighestVersion" : true, + "creationDate" : 1509606274213, + "lastUpdateDate" : 1509606440988, + "description" : "VLB created from CLI", + "lifecycleState" : "CERTIFICATION_IN_PROGRESS", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "icon" : "defaulticon", + "normalizedName" : "kanagclivlb", + "systemName" : "KanagCliVlb", + "contactId" : "cs0008", + "allVersions" : { + "0.1" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584" + }, + "projectCode" : "kanag-123456", + "invariantUUID" : "c4425f23-fc9a-4cbf-a3b7-12e69054806b", + "componentType" : "SERVICE", + "categories" : [ { + "name" : "Network L1-3", + "normalizedName" : "network l1-3", + "uniqueId" : "serviceNewCategory.network l1-3" + } ], + "creatorUserId" : "cs0008", + "creatorFullName" : "Carlos Santana", + "lastUpdaterUserId" : "jm0007", + "lastUpdaterFullName" : "Joni Mitchell", + "distributionStatus" : "DISTRIBUTION_NOT_APPROVED", + "ecompGeneratedNaming" : true, + "namingPolicy" : "", + "serviceType" : "", + "serviceRole" : "", + "uuid" : "660c524c-176b-43b1-a85b-1ef18011ca85" + } + } +} ] \ No newline at end of file diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-sample.yaml new file mode 100644 index 00000000..e2c2b423 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-start-schema-beijing-sample.yaml @@ -0,0 +1,23 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: service-model-certify-start +version: onap-beijing +samples: + sample1: + name: service-model-certify-start + input: --service-model-id 7b427dbf-685b-4ba9-8838-a9b3b3c8e584 + moco: service-model-certify-start-schema-1.1-moco.json + output: \ No newline at end of file diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-start-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-start-schema-beijing.yaml new file mode 100644 index 00000000..5f231569 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-start-schema-beijing.yaml @@ -0,0 +1,45 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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_schema_version: 1.0 +name: service-model-certify-start +description: Starts the certification of Service model in SDC + +info: + product: onap-beijing + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: service-model-id + description: Service model ID + type: string + long_option: service-model-id + short_option: b + is_optional: true + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/startCertification + method: POST + body: '{}' + success_codes: + - 200 + -- cgit 1.2.3-korg