aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:07:46 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:07:46 +0530
commitf931f27acb3f57df5c4b41992a28f11026f57078 (patch)
tree790fe91e22b9b09484f6b72d2ddd975ac98addcf
parent3fee816cf7ecbc9ac2f2d95e0f95e9a036d34cb5 (diff)
CLI: service-model-certify-complete beijing
Change-Id: I585d3fc4bdc0d33036fd960241edb85b2e76ed37 Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-schema-beijing-moco.json56
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-schema-beijing-sample.yaml23
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-complete-schema-beijing.yaml45
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-complete-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-schema-beijing-moco.json
new file mode 100644
index 00000000..b7ea4ebf
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-schema-beijing-moco.json
@@ -0,0 +1,56 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/sdc2/rest/v1/catalog/services/7b427dbf-685b-4ba9-8838-a9b3b3c8e584/lifecycleState/certify",
+ "headers" : {
+ "Authorization" : "Basic am0wMDA3OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "USER_ID" : "jm0007",
+ "X-TransactionId" : "req-ec06b51c-9f76-4440-a6e8-7a14791b169a",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "userRemarks" : "Completing certification via CLI"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "uniqueId" : "ba5a19b1-3219-4f30-bfd3-3b2f700c0157",
+ "name" : "kanag-cli-VLB",
+ "version" : "1.0",
+ "isHighestVersion" : true,
+ "creationDate" : 1509606274213,
+ "lastUpdateDate" : 1509606440988,
+ "description" : "VLB created from CLI",
+ "lifecycleState" : "CERTIFIED",
+ "tags" : [ "CLI", "kanag-cli-VLB" ],
+ "icon" : "defaulticon",
+ "normalizedName" : "kanagclivlb",
+ "systemName" : "KanagCliVlb",
+ "contactId" : "cs0008",
+ "allVersions" : {
+ "1.0" : "ba5a19b1-3219-4f30-bfd3-3b2f700c0157"
+ },
+ "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" : "jm0007",
+ "creatorFullName" : "Joni Mitchell",
+ "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-complete-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-schema-beijing-sample.yaml
new file mode 100644
index 00000000..4d905e37
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-certify-complete-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-complete
+version: onap-beijing
+samples:
+ sample1:
+ name: service-model-certify-complete
+ input: --service-model-id 7b427dbf-685b-4ba9-8838-a9b3b3c8e584
+ moco: service-model-certify-complete-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-complete-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-complete-schema-beijing.yaml
new file mode 100644
index 00000000..fa34ac6b
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-certify-complete-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-complete
+description: Completes 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/certify
+ method: POST
+ body: '{"userRemarks": "Completing certification via CLI"}'
+ success_codes:
+ - 200
+