From 8f87fa5bd2ef22c6c589be25169781cbe692da1b Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:55:47 +0530 Subject: customer samples Change-Id: I77cf39cac9822374392132191b762c7b6197e0ab Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- .../customer-create-schema-dublin-moco.json | 22 ++++++++++++++++ .../customer-create-schema-dublin-sample.yaml | 10 ++++++++ .../customer-delete-schema-dublin-moco.json | 18 +++++++++++++ .../customer-delete-schema-dublin-sample.yaml | 10 ++++++++ .../customer/customer-list-schema-dublin-moco.json | 30 ++++++++++++++++++++++ .../customer-list-schema-dublin-sample.yaml | 10 ++++++++ 6 files changed, 100 insertions(+) create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml (limited to 'products') 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"}] -- cgit 1.2.3-korg