aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/so
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-13 00:26:30 +0530
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-21 19:43:23 +0530
commit431753aeb6c82733090c5e941d787218bf2b1518 (patch)
treede589e6789b5736ff3e0bae59c78c6a605584474 /plugins/so
parentca7fbf3a8aa4c693ec469934f95a0c39fdbc937d (diff)
Implement command SO service delete
Implement command for SO service delete. Change-Id: I8857e935504a32e83edcf36916d4082dfdb55c14 Issue-ID: CLI-15 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'plugins/so')
-rw-r--r--plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml25
-rw-r--r--plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml8
2 files changed, 33 insertions, 0 deletions
diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml b/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml
new file mode 100644
index 00000000..e7791d56
--- /dev/null
+++ b/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml
@@ -0,0 +1,25 @@
+open_cli_schema_version: 1.0
+name: service-delete
+description: Delete a service instance
+version: onap-1.1
+service:
+ name: so
+ version: v2
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: x
+ long_option: service-instace-id
+ is_optional: false
+
+http:
+ request:
+ uri: /ecomp/mso/infra/serviceInstances/v2/${service-instance-id}
+ method: DELETE
+ body: '{"requestDetails": {"modelInfo": {"modelType": "service", "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", "modelName": "Test","modelVersion": "1.0"}, "requestInfo":{"source": "VID"}}}'
+ success_codes:
+ - 204 \ No newline at end of file
diff --git a/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml b/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml
new file mode 100644
index 00000000..cc114ac0
--- /dev/null
+++ b/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: service-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: delete a service instance
+ input: -h https://locahost:8080 -u InfraPortalClient -p password1$ -s 56AA445 \ No newline at end of file