summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:55:47 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:55:47 +0530
commit8f87fa5bd2ef22c6c589be25169781cbe692da1b (patch)
tree6f72f19a8402d10dea5a1f53c6fb66f2b9f327c5 /products/onap-dublin
parentb8167c633204ee1f8f706371921ae53e2a6d62bd (diff)
customer samples
Change-Id: I77cf39cac9822374392132191b762c7b6197e0ab Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json22
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json18
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json30
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml10
6 files changed, 100 insertions, 0 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json
new file mode 100644
index 00000000..4a50d149
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json
@@ -0,0 +1,22 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v13/business/customers/customer/ovp",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-7c0cea00-bd21-4560-b31e-c03c5ad3ffa3",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "global-customer-id" : "ovp",
+ "subscriber-name" : "ovp",
+ "subscriber-type" : "INFRA"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml
new file mode 100644
index 00000000..6c9904b0
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-create
+version: onap-dublin
+samples:
+ sample1:
+ name: customer-create
+ input: --format json --customer-name ovp --subscriber-name ovp
+ moco: customer-create-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json
new file mode 100644
index 00000000..2b0e8e9f
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v13/business/customers/customer/ovp",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-e1e39cdd-d681-49eb-8fc3-0372fc6a6f27",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml
new file mode 100644
index 00000000..cbbc6444
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-delete
+version: onap-dublin
+samples:
+ sample1:
+ name: customer-delete
+ input: --format json --customer-id ovp --resource-version 1567068664088
+ moco: customer-delete-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json
new file mode 100644
index 00000000..b5dff83a
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json
@@ -0,0 +1,30 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/business/customers",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-59c70d03-10ab-42a8-b6a7-65a0c85f22e4",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "customer" : [ {
+ "global-customer-id" : "Demonstration",
+ "subscriber-name" : "Demonstration",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1564139322133"
+ }, {
+ "global-customer-id" : "ovp",
+ "subscriber-name" : "ovp",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1567068664088"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..02f0bf47
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-list
+version: onap-dublin
+samples:
+ sample1:
+ name: customer-list
+ input: --format json
+ moco: customer-list-schema-dublin-moco.json
+ output: |
+ [{"resource-version":"1564139322133","name":"Demonstration"},{"resource-version":"1567068664088","name":"ovp"}]