From 11f11fc85edc7b3b060549f5b1516e0805d9b372 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 28 Sep 2018 10:52:14 +0530 Subject: Casablanca: AAI business Issue-ID: CLI-122 Change-Id: I4dc3cdb431753e1b42b56fd14e59f8311235cad4 Signed-off-by: Kanagaraj Manickam k00365106 --- .../customer-create-schema-casablanca-moco.json | 22 ++++++++++++++ .../customer-create-schema-casablanca-sample.yaml | 9 ++++++ .../customer-delete-schema-casablanca-moco.json | 18 +++++++++++ .../customer-delete-schema-casablanca-sample.yaml | 9 ++++++ .../customer-list-schema-casablanca-moco.json | 35 ++++++++++++++++++++++ .../customer-list-schema-casablanca-sample.yaml | 18 +++++++++++ .../customer-show-schema-casablanca-moco.json | 23 ++++++++++++++ .../customer-show-schema-casablanca-sample.yaml | 14 +++++++++ 8 files changed, 148 insertions(+) create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-sample.yaml (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer') diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-moco.json new file mode 100644 index 00000000..7ca8a6b7 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-moco.json @@ -0,0 +1,22 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v13/business/customers/customer/mrkanag", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-5dc2d328-9cc0-4297-8d6c-2108ee9c9036", + "Content-Type" : "application/json" + }, + "json" : { + "global-customer-id" : "mrkanag", + "subscriber-name" : "mrkanag", + "subscriber-type" : "INFRA" + } + }, + "response" : { + "status" : 201, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-sample.yaml new file mode 100644 index 00000000..5764a36c --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: customer-create +version: onap-casablanca +samples: + sample1: + name: customer-create + input: --customer-name mrkanag --subscriber-name mrkanag -d + moco: customer-create-schema-casablanca-moco.json + output: \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-moco.json new file mode 100644 index 00000000..5caefa73 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-moco.json @@ -0,0 +1,18 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v13/business/customers/customer/mrkanag", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-491247e3-a6c7-4c4a-8af5-a98c85442307", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 204, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-sample.yaml new file mode 100644 index 00000000..221f2a62 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: customer-delete +version: onap-casablanca +samples: + sample1: + name: customer-delete + input: --customer-id mrkanag --resource-version 1538105836430 -d + moco: customer-delete-schema-casablanca-moco.json + output: \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-moco.json new file mode 100644 index 00000000..be7ab31e --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-moco.json @@ -0,0 +1,35 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/business/customers", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-6e5c21be-a7a2-459d-8765-99f7663cdce9", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "customer" : [ { + "global-customer-id" : "Customer1", + "subscriber-name" : "Customer1", + "subscriber-type" : "BSS", + "resource-version" : "1535520279641" + }, { + "global-customer-id" : "generic", + "subscriber-name" : "generic", + "subscriber-type" : "BSS", + "resource-version" : "1535628858377" + }, { + "global-customer-id" : "mrkanag", + "subscriber-name" : "mrkanag", + "subscriber-type" : "INFRA", + "resource-version" : "1538105836430" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..66520916 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-casablanca-sample.yaml @@ -0,0 +1,18 @@ +open_cli_sample_version: 1.0 +name: customer-list +version: onap-casablanca +samples: + sample1: + name: customer-list + input: + moco: customer-list-schema-casablanca-moco.json + output: | + +------------+------------------+ + |name |resource-version | + +------------+------------------+ + |Customer1 |1535520279641 | + +------------+------------------+ + |generic |1535628858377 | + +------------+------------------+ + |mrkanag |1538105836430 | + +------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-moco.json new file mode 100644 index 00000000..0919a999 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-moco.json @@ -0,0 +1,23 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/business/customers/customer/mrkanag", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-04a4060f-b2ac-4cb5-97fb-2ec535599434", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "global-customer-id" : "mrkanag", + "subscriber-name" : "mrkanag", + "subscriber-type" : "INFRA", + "resource-version" : "1538105836430" + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-sample.yaml new file mode 100644 index 00000000..aa38612d --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/customer/customer-show-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: customer-show +version: onap-casablanca +samples: + sample1: + name: customer-show + input: --customer-name mrkanag --long + moco: customer-show-schema-casablanca-moco.json + output: | + +----------+------------------+------------------+------------------+ + |name |subscriber-name |resource-version |subscriber-type | + +----------+------------------+------------------+------------------+ + |mrkanag |mrkanag |1538105836430 |INFRA | + +----------+------------------+------------------+------------------+ -- cgit 1.2.3-korg