diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 16:08:03 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 16:08:03 +0530 |
commit | 6d2388849761527e2f79af996df794d2b594f128 (patch) | |
tree | 3b2187c1bb46415b18802bef3ac0597248de3bb5 /products/onap-beijing | |
parent | f931f27acb3f57df5c4b41992a28f11026f57078 (diff) |
CLI: service-model-certify-request beijing
Change-Id: I19311e7d53306b3142a0919275899f48c7633a53
Issue-ID: CLI-100
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing')
3 files changed, 124 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-request-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-request-schema-beijing-moco.json new file mode 100644 index 00000000..0ae0e2da --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-request-schema-beijing-moco.json @@ -0,0 +1,56 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/services/7b427dbf-685b-4ba9-8838-a9b3b3c8e584/lifecycleState/certificationRequest", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-4ebd2f66-a6a6-4bb7-8cae-3038e2e8080d", + "Content-Type" : "application/json" + }, + "json" : { + "userRemarks" : "Requesting certification via CLI" + } + }, + "response" : { + "status" : 200, + "json" : { + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584", + "name" : "kanag-cli-VLB", + "version" : "0.1", + "isHighestVersion" : true, + "creationDate" : 1509606274213, + "lastUpdateDate" : 1509606425492, + "description" : "VLB created from CLI", + "lifecycleState" : "READY_FOR_CERTIFICATION", + "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" : "cs0008", + "lastUpdaterFullName" : "Carlos Santana", + "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-request-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-request-schema-beijing-sample.yaml new file mode 100644 index 00000000..7a285d94 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-request-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-request +version: onap-beijing +samples: + sample1: + name: service-model-certify-request + input: --service-model-id 7b427dbf-685b-4ba9-8838-a9b3b3c8e584 + moco: service-model-certify-request-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-request-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-request-schema-beijing.yaml new file mode 100644 index 00000000..c4dff288 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-request-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-request +description: Request 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/certificationRequest + method: POST + body: '{"userRemarks": "Requesting certification via CLI"}' + success_codes: + - 200 + |