aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 09:35:04 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-10-27 04:48:13 +0000
commit01ff254b5e1cb9c322f536bb98b5ec6517d73029 (patch)
tree59c352ee590e581c4be97c68b8114d12f3040788 /plugins/aai
parent81376d2c0a926e5e74a4f6105d7b605611508067 (diff)
Add sample for service-type-delete
CLI-57 Change-Id: Ic6863d79665d11e7244e105d776607b6a99d0028 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml9
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-moco.json18
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-sample.yaml9
3 files changed, 27 insertions, 9 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml
deleted file mode 100644
index 46626a29..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: service-type-delete
-version: onap-1.1
-samples:
- sample1:
- name: Delete the service type
- input: -h https://locahost:8443 -u AAI -p AAI -x 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 -y 1504086172338
-
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-moco.json
new file mode 100644
index 00000000..961e3a90
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v11/service-design-and-creation/services/service/de1fa33f-f676-42e5-b79a-a39825c19b1d",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-41247f9a-4124-4b09-b7e1-045a74e610fb",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-sample.yaml
new file mode 100644
index 00000000..1d4bb8fc
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-schema-1.1-sample.yaml
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: service-type-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: service-type-delete
+ input: --service-type-id de1fa33f-f676-42e5-b79a-a39825c19b1d --resource-version 1509029708094
+ moco: service-type-delete-schema-1.1-moco.json
+ ouput: