summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:43:25 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:43:25 +0530
commit89b3744c192fc446d54483538b2b3ddc13aa5626 (patch)
treeafd578a521fe5e7d9086c523e0ba5bec79561aa1
parent8228889ec406040e72dc0da791e41b5fc1de7fb8 (diff)
service-model-test-start updates
Change-Id: I6a4868584a217e5908d6081e6c945a7993eee6e4 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-moco.json30
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-test-start-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml8
3 files changed, 24 insertions, 36 deletions
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: