From afee52bf41656a4f639ec4c140015e58193ba222 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 8 May 2018 13:00:28 +0000 Subject: Fix service delete sample for v4 SO apis Fix service delete sample for v4 SO apis. Change-Id: I2a23d940018133ea4b62dd6a1cc2c3bfaca0aadb Issue-ID: CLI-63 Signed-off-by: subhash kumar singh --- .../open-cli-sample/services/service-delete-sample-beijing.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'products/onap-beijing/features') diff --git a/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-sample-beijing.yaml b/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-sample-beijing.yaml index a279fb08..9d244009 100644 --- a/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-sample-beijing.yaml +++ b/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-sample-beijing.yaml @@ -19,4 +19,4 @@ version: onap-beijing samples: sample1: name: delete a service instance - input: -h https://locahost:8080 -u InfraPortalClient -p password1$ -s 56AA445 \ No newline at end of file + input: --model-name sample-model --model-invariant-id 0561a325-a64b-47ab-86f4-000000000429 --cloud-region Region1 --service-instace-id 0561a325-a64b-47ab-86f4-000000000439 --model-uuid 0561a325-a64b-47ab-86f4-000000000449 --customer-name sample-customer --model-version 1.0 --tenant-id onap -r 0561a325-a64b-47ab-86f4-000000000459 \ No newline at end of file -- cgit 1.2.3-korg From 17d656ff8e763597fe251dac833a321843aa1c5e Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 8 May 2018 13:03:52 +0000 Subject: Fix service delete command for SO v4 version Fix service delete command for SO v4 version. Change-Id: I4685ea882bb70468df14d1c77de1455dda6443be Issue-ID: CLI-63 Signed-off-by: subhash kumar singh --- .../services/service-delete-schema-beijing.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'products/onap-beijing/features') diff --git a/products/onap-beijing/features/so/src/main/resources/open-cli-schema/services/service-delete-schema-beijing.yaml b/products/onap-beijing/features/so/src/main/resources/open-cli-schema/services/service-delete-schema-beijing.yaml index 7cb2604d..d8c04dbb 100644 --- a/products/onap-beijing/features/so/src/main/resources/open-cli-schema/services/service-delete-schema-beijing.yaml +++ b/products/onap-beijing/features/so/src/main/resources/open-cli-schema/services/service-delete-schema-beijing.yaml @@ -71,6 +71,12 @@ parameters: short_option: k long_option: tenant-id is_optional: false + - name: requestor-id + description: requestor ID + type: string + short_option: r + long_option: requestor-id + is_optional: false http: service: @@ -81,7 +87,7 @@ http: request: uri: /ecomp/mso/infra/serviceInstances/v4/${service-id} method: DELETE - body: '{"requestDetails": {"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"subscriberInfo": {"globalSubscriberId": "${customer-name}"},"requestInfo": {"source": "VID"}}}' + body: '{"requestDetails": {"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"subscriberInfo": {"globalSubscriberId": "${customer-name}"},"requestInfo": {"requestorId": "${requestor-id}","source": "VID"}}}' success_codes: - - 202 \ No newline at end of file + - 202 -- cgit 1.2.3-korg From d523db76fd3b890c6df8803008699e9f8d3731bf Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 8 May 2018 13:05:35 +0000 Subject: Add moco json for service delete command Add moco json for service delete command. Change-Id: I0e61bb7dc9f38bf054ce99e378119e9234e67b59 Issue-ID: CLI-63 Signed-off-by: subhash kumar singh --- .../service-delete-schema-beijing-moco.json | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-schema-beijing-moco.json (limited to 'products/onap-beijing/features') diff --git a/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-schema-beijing-moco.json b/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-schema-beijing-moco.json new file mode 100644 index 00000000..eda897ae --- /dev/null +++ b/products/onap-beijing/features/so/src/main/resources/open-cli-sample/services/service-delete-schema-beijing-moco.json @@ -0,0 +1,44 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/ecomp/mso/infra/serviceInstances/v4/0561a325-a64b-47ab-86f4-000000000439", + "headers" : { + "Authorization" : "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-0dc01d80-f629-4ea9-b49f-0bc45b79bfaf", + "Content-Type" : "application/json" + }, + "json" : { + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "0561a325-a64b-47ab-86f4-000000000429", + "modelVersionId": "0561a325-a64b-47ab-86f4-000000000449", + "modelName": "sample-model", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "Region1", + "tenantId": "onap" + }, + "subscriberInfo": { + "globalSubscriberId": "sample-customer" + }, + "requestInfo": { + "requestorId": "0561a325-a64b-47ab-86f4-000000000459", + "source": "VID" + } + } + } + }, + "response" : { + "status" : 202, + "json" : { + "requestReferences" : { + "instanceId" : "957949b4-f857-497c-81b0-832ce7bb9434", + "requestId" : "d59fc98a-b0fa-4de9-b426-6ef40dfd0812" + } + } + } +} ] \ No newline at end of file -- cgit 1.2.3-korg