summaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/test/resources/onap-cli-sample
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 10:15:48 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-10-27 04:53:31 +0000
commit154c21167c5edbe0f0c0143113577a2fb93f2ec2 (patch)
tree0f14ef064b4629f0a171e641ee65c1c45c40afb6 /plugins/aai/src/test/resources/onap-cli-sample
parent31fcc8994ccd8ad0fe1f9cd2b248e80e7c49136e (diff)
Add sample for subscription-delete
CLI-57 Change-Id: I8eeef5fbb99dff77d60ad3d7e0bbe9d3c4b19ad4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test/resources/onap-cli-sample')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-moco.json18
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-sample.yaml9
3 files changed, 27 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml
deleted file mode 100644
index 3a040d7e..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: subscription-delete
-version: onap-1.1
-samples:
- sample1:
- name: Delete the subscription
- input: -h https://locahost:8443 -u AAI -p AAI -x customer-4 -y vTest -g 1504258356743
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-moco.json
new file mode 100644
index 00000000..bcbd8451
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v11//business/customers/customer/kanag/service-subscriptions/service-subscription/vFW-kanag",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-64fc35d5-c804-4e92-befd-0c695a77e12d",
+ "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/subscription/subscription-delete-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-sample.yaml
new file mode 100644
index 00000000..eb1e821d
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-schema-1.1-sample.yaml
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: subscription-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: subscription-delete
+ input: --customer-name kanag --service-type vFW-kanag --resource-version 1509079144326
+ moco: subscription-delete-schema-1.1-moco.json
+ ouput: \ No newline at end of file