aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-26 20:20:06 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-26 20:20:06 +0530
commitac5043681e662aa837c9be7d1d794861dd7aeb87 (patch)
tree13e52151dedfe1059be42214e4b2fd0f2201c1fb /plugins/aai/src
parent31e3702d442417d57042ab594956ea2a57a7a752 (diff)
Add sample for customer-delete
CLI-57 Change-Id: I4df1280162c6ac71d3cf07694b7743d82a638004 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml9
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-moco.json18
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-sample.yaml10
3 files changed, 28 insertions, 9 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml
deleted file mode 100644
index 9f80da02..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: customer-delete
-version: onap-1.1
-samples:
- sample1:
- name: Delete the customer
- input: -h https://locahost:8443 -u AAI -p AAI -x customer-1 -y 1504085129922
-
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-moco.json
new file mode 100644
index 00000000..26e8a918
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v11/business/customers/customer/test",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-5f5bb7d0-5d03-42a3-a24f-fd8d125a7a8e",
+ "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/customer/customer-delete-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-sample.yaml
new file mode 100644
index 00000000..e209fe13
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-schema-1.1-sample.yaml
@@ -0,0 +1,10 @@
+onap_cli_sample_version: 1.0
+name: customer-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: customer-delete
+ input: --customer-name test --resource-version 1509029022293
+ moco: customer-delete-schema-1.1-moco.json
+ ouput: |
+