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 ++++ ...service-type-create-schema-casablanca-moco.json | 21 ++++++ ...rvice-type-create-schema-casablanca-sample.yaml | 9 +++ ...service-type-delete-schema-casablanca-moco.json | 18 +++++ ...rvice-type-delete-schema-casablanca-sample.yaml | 9 +++ .../service-type-list-schema-casablanca-moco.json | 24 +++++++ ...service-type-list-schema-casablanca-sample.yaml | 9 +++ ...subscription-create-schema-casablanca-moco.json | 20 ++++++ ...bscription-create-schema-casablanca-sample.yaml | 9 +++ ...subscription-delete-schema-casablanca-moco.json | 18 +++++ ...bscription-delete-schema-casablanca-sample.yaml | 9 +++ .../subscription-list-schema-casablanca-moco.json | 23 +++++++ ...subscription-list-schema-casablanca-sample.yaml | 14 ++++ .../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 ---- ...service-type-create-schema-casablanca-moco.json | 21 ------ ...rvice-type-create-schema-casablanca-sample.yaml | 9 --- ...service-type-delete-schema-casablanca-moco.json | 18 ----- ...rvice-type-delete-schema-casablanca-sample.yaml | 9 --- .../service-type-list-schema-casablanca-moco.json | 24 ------- ...service-type-list-schema-casablanca-sample.yaml | 9 --- ...subscription-create-schema-casablanca-moco.json | 20 ------ ...bscription-create-schema-casablanca-sample.yaml | 9 --- ...subscription-delete-schema-casablanca-moco.json | 18 ----- ...bscription-delete-schema-casablanca-sample.yaml | 9 --- .../subscription-list-schema-casablanca-moco.json | 23 ------- ...subscription-list-schema-casablanca-sample.yaml | 14 ---- .../customer-create-schema-casablanca.yaml | 47 +++++++++++++ .../customer-delete-schema-casablanca.yaml | 46 +++++++++++++ .../customer/customer-list-schema-casablanca.yaml | 47 +++++++++++++ .../customer/customer-show-schema-casablanca.yaml | 66 +++++++++++++++++++ .../service-type-create-schema-casablanca.yaml | 48 ++++++++++++++ .../service-type-delete-schema-casablanca.yaml | 46 +++++++++++++ .../service-type-list-schema-casablanca.yaml | 52 +++++++++++++++ .../subscription-create-schema-casablanca.yaml | 70 ++++++++++++++++++++ .../subscription-delete-schema-casablanca.yaml | 55 ++++++++++++++++ .../subscription-list-schema-casablanca.yaml | 77 ++++++++++++++++++++++ .../customer-create-schema-casablanca.yaml | 47 ------------- .../customer-delete-schema-casablanca.yaml | 46 ------------- .../customer/customer-list-schema-casablanca.yaml | 47 ------------- .../customer/customer-show-schema-casablanca.yaml | 66 ------------------- .../service-type-create-schema-casablanca.yaml | 48 -------------- .../service-type-delete-schema-casablanca.yaml | 46 ------------- .../service-type-list-schema-casablanca.yaml | 52 --------------- .../subscription-create-schema-casablanca.yaml | 70 -------------------- .../subscription-delete-schema-casablanca.yaml | 55 ---------------- .../subscription-list-schema-casablanca.yaml | 77 ---------------------- 60 files changed, 885 insertions(+), 885 deletions(-) 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 create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-sample.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-moco.json delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-sample.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-create-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-list-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-show-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-create-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-delete-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-list-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-delete-schema-casablanca.yaml create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-list-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-casablanca.yaml delete mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-casablanca.yaml 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 | + +----------+------------------+------------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-moco.json new file mode 100644 index 00000000..c1382f2b --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-moco.json @@ -0,0 +1,21 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v13/service-design-and-creation/services/service/a6402d68-0784-4972-aa99-c20caa46f459", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-11ae6b5e-d3f7-49d7-9192-2dcadb69d445", + "Content-Type" : "application/json" + }, + "json" : { + "service-description" : "vfw-in", + "service-id" : "a6402d68-0784-4972-aa99-c20caa46f459" + } + }, + "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/service-type/service-type-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-sample.yaml new file mode 100644 index 00000000..db0bfada --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: service-type-create +version: onap-casablanca +samples: + sample1: + name: service-type-create + input: --service-type vfw-in -d + moco: service-type-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/service-type/service-type-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-moco.json new file mode 100644 index 00000000..8aa6d794 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-moco.json @@ -0,0 +1,18 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v13/service-design-and-creation/services/service/a6402d68-0784-4972-aa99-c20caa46f459", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-a45a6df7-0763-44ab-990f-cc506da567ab", + "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/service-type/service-type-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-sample.yaml new file mode 100644 index 00000000..17b067f5 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: service-type-delete +version: onap-casablanca +samples: + sample1: + name: service-type-delete + input: --service-type-id a6402d68-0784-4972-aa99-c20caa46f459 --resource-version 1538109817240 -d + moco: service-type-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/service-type/service-type-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-moco.json new file mode 100644 index 00000000..89b813ec --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-moco.json @@ -0,0 +1,24 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/service-design-and-creation/services", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-e3ff2ec6-e10b-42a9-8d3e-0a29996b9fa8", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "service" : [ { + "service-id" : "a6402d68-0784-4972-aa99-c20caa46f459", + "service-description" : "vfw-in", + "resource-version" : "1538109817240" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..fe831ed9 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: service-type-list +version: onap-casablanca +samples: + sample1: + name: service-type-list + input: -d + moco: service-type-list-schema-casablanca-moco.json + output: | diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-moco.json new file mode 100644 index 00000000..52dfd8fb --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-moco.json @@ -0,0 +1,20 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions/service-subscription/vfw-in", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-c2045a35-97a4-4ace-a7df-4db031ba0da9", + "Content-Type" : "application/json" + }, + "json" : { + "service-type" : "vfw-in" + } + }, + "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/subscription/subscription-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-sample.yaml new file mode 100644 index 00000000..5e4d97cf --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: subscription-create +version: onap-casablanca +samples: + sample1: + name: subscription-create + input: --customer-name mrkanag --service-type vfw-in -d + moco: subscription-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/subscription/subscription-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-moco.json new file mode 100644 index 00000000..2dd49b18 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-moco.json @@ -0,0 +1,18 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions/service-subscription/vfw-in", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-944713a2-16f1-4dc7-b4fa-913b041d0db8", + "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/subscription/subscription-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-sample.yaml new file mode 100644 index 00000000..f4d76164 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-delete-schema-casablanca-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: subscription-delete +version: onap-casablanca +samples: + sample1: + name: subscription-delete + input: --customer-name mrkanag --service-type vfw-in --resource-version 1538111525606 -d + moco: subscription-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/subscription/subscription-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-moco.json new file mode 100644 index 00000000..8dcf7a24 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-moco.json @@ -0,0 +1,23 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-aa70d08c-0e55-422a-be1e-eede28708f70", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "service-subscription" : [ { + "service-type" : "vfw-in", + "resource-version" : "1538111525606" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..7303ca23 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: subscription-list +version: onap-casablanca +samples: + sample1: + name: subscription-list + input: --customer-name mrkanag + moco: subscription-list-schema-casablanca-moco.json + output: | + +--------------+------------------+ + |service-type |resource-version | + +--------------+------------------+ + |vfw-in |1538111525606 | + +--------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-moco.json deleted file mode 100644 index 7ca8a6b7..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-moco.json +++ /dev/null @@ -1,22 +0,0 @@ -[ { - "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/customer/customer-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-sample.yaml deleted file mode 100644 index 5764a36c..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -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/customer/customer-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-moco.json deleted file mode 100644 index 5caefa73..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-moco.json +++ /dev/null @@ -1,18 +0,0 @@ -[ { - "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/customer/customer-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-sample.yaml deleted file mode 100644 index 221f2a62..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -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/customer/customer-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json deleted file mode 100644 index be7ab31e..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json +++ /dev/null @@ -1,35 +0,0 @@ -[ { - "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/customer/customer-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml deleted file mode 100644 index 66520916..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml +++ /dev/null @@ -1,18 +0,0 @@ -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/customer/customer-show-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json deleted file mode 100644 index 0919a999..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json +++ /dev/null @@ -1,23 +0,0 @@ -[ { - "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/customer/customer-show-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml deleted file mode 100644 index aa38612d..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml +++ /dev/null @@ -1,14 +0,0 @@ -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 | - +----------+------------------+------------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-moco.json deleted file mode 100644 index c1382f2b..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-moco.json +++ /dev/null @@ -1,21 +0,0 @@ -[ { - "request" : { - "method" : "put", - "uri" : "/aai/v13/service-design-and-creation/services/service/a6402d68-0784-4972-aa99-c20caa46f459", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-11ae6b5e-d3f7-49d7-9192-2dcadb69d445", - "Content-Type" : "application/json" - }, - "json" : { - "service-description" : "vfw-in", - "service-id" : "a6402d68-0784-4972-aa99-c20caa46f459" - } - }, - "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/service-type/service-type-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-sample.yaml deleted file mode 100644 index db0bfada..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-create-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -open_cli_sample_version: 1.0 -name: service-type-create -version: onap-casablanca -samples: - sample1: - name: service-type-create - input: --service-type vfw-in -d - moco: service-type-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/service-type/service-type-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-moco.json deleted file mode 100644 index 8aa6d794..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-moco.json +++ /dev/null @@ -1,18 +0,0 @@ -[ { - "request" : { - "method" : "delete", - "uri" : "/aai/v13/service-design-and-creation/services/service/a6402d68-0784-4972-aa99-c20caa46f459", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-a45a6df7-0763-44ab-990f-cc506da567ab", - "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/service-type/service-type-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-sample.yaml deleted file mode 100644 index 17b067f5..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-delete-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -open_cli_sample_version: 1.0 -name: service-type-delete -version: onap-casablanca -samples: - sample1: - name: service-type-delete - input: --service-type-id a6402d68-0784-4972-aa99-c20caa46f459 --resource-version 1538109817240 -d - moco: service-type-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/service-type/service-type-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-moco.json deleted file mode 100644 index 89b813ec..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-moco.json +++ /dev/null @@ -1,24 +0,0 @@ -[ { - "request" : { - "method" : "get", - "uri" : "/aai/v13/service-design-and-creation/services", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-e3ff2ec6-e10b-42a9-8d3e-0a29996b9fa8", - "Content-Type" : "application/json" - }, - "json" : null - }, - "response" : { - "status" : 200, - "json" : { - "service" : [ { - "service-id" : "a6402d68-0784-4972-aa99-c20caa46f459", - "service-description" : "vfw-in", - "resource-version" : "1538109817240" - } ] - } - } -} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-sample.yaml deleted file mode 100644 index fe831ed9..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/service-type/service-type-list-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -open_cli_sample_version: 1.0 -name: service-type-list -version: onap-casablanca -samples: - sample1: - name: service-type-list - input: -d - moco: service-type-list-schema-casablanca-moco.json - output: | diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-moco.json deleted file mode 100644 index 52dfd8fb..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-moco.json +++ /dev/null @@ -1,20 +0,0 @@ -[ { - "request" : { - "method" : "put", - "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions/service-subscription/vfw-in", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-c2045a35-97a4-4ace-a7df-4db031ba0da9", - "Content-Type" : "application/json" - }, - "json" : { - "service-type" : "vfw-in" - } - }, - "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/subscription/subscription-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-sample.yaml deleted file mode 100644 index 5e4d97cf..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-create-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -open_cli_sample_version: 1.0 -name: subscription-create -version: onap-casablanca -samples: - sample1: - name: subscription-create - input: --customer-name mrkanag --service-type vfw-in -d - moco: subscription-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/subscription/subscription-delete-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-moco.json deleted file mode 100644 index 2dd49b18..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-moco.json +++ /dev/null @@ -1,18 +0,0 @@ -[ { - "request" : { - "method" : "delete", - "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions/service-subscription/vfw-in", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-944713a2-16f1-4dc7-b4fa-913b041d0db8", - "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/subscription/subscription-delete-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-sample.yaml deleted file mode 100644 index f4d76164..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-delete-schema-casablanca-sample.yaml +++ /dev/null @@ -1,9 +0,0 @@ -open_cli_sample_version: 1.0 -name: subscription-delete -version: onap-casablanca -samples: - sample1: - name: subscription-delete - input: --customer-name mrkanag --service-type vfw-in --resource-version 1538111525606 -d - moco: subscription-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/subscription/subscription-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-moco.json deleted file mode 100644 index 8dcf7a24..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-moco.json +++ /dev/null @@ -1,23 +0,0 @@ -[ { - "request" : { - "method" : "get", - "uri" : "/aai/v13/business/customers/customer/mrkanag/service-subscriptions", - "headers" : { - "Authorization" : "Basic QUFJOkFBSQ==", - "X-FromAppId" : "ONAP CLI", - "Accept" : "application/json", - "X-TransactionId" : "req-aa70d08c-0e55-422a-be1e-eede28708f70", - "Content-Type" : "application/json" - }, - "json" : null - }, - "response" : { - "status" : 200, - "json" : { - "service-subscription" : [ { - "service-type" : "vfw-in", - "resource-version" : "1538111525606" - } ] - } - } -} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-sample.yaml deleted file mode 100644 index 7303ca23..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-casablanca-sample.yaml +++ /dev/null @@ -1,14 +0,0 @@ -open_cli_sample_version: 1.0 -name: subscription-list -version: onap-casablanca -samples: - sample1: - name: subscription-list - input: --customer-name mrkanag - moco: subscription-list-schema-casablanca-moco.json - output: | - +--------------+------------------+ - |service-type |resource-version | - +--------------+------------------+ - |vfw-in |1538111525606 | - +--------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-create-schema-casablanca.yaml new file mode 100644 index 00000000..9f998370 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-create-schema-casablanca.yaml @@ -0,0 +1,47 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: customer-create +description: Create a customer in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: subscriber-name + description: Onap subscriber name + type: string + short_option: y + long_option: subscriber-name + is_optional: false + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-name} + method: PUT + body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' + success_codes: + - 201 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-casablanca.yaml new file mode 100644 index 00000000..9ce03918 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-casablanca.yaml @@ -0,0 +1,46 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: customer-delete +description: Delete a customer from Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-id + description: Onap customer id + type: string + short_option: x + long_option: customer-id + is_optional: false + - name: resource-version + description: Onap customer resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: false +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-id}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-list-schema-casablanca.yaml new file mode 100644 index 00000000..997cd951 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-list-schema-casablanca.yaml @@ -0,0 +1,47 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: customer-list +description: Lists the registered customers in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: resource-version + description: Onap customer resource version + scope: short + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers + method: GET + success_codes: + - 200 + - 404 + result_map: + name: $b{customer.[*].global-customer-id} + resource-version: $b{customer.[*].resource-version} diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-show-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-show-schema-casablanca.yaml new file mode 100644 index 00000000..65c512f6 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/customer/customer-show-schema-casablanca.yaml @@ -0,0 +1,66 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: customer-show +description: Retrieves the given registered customer in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: subscriber-name + description: Onap subscriber name + scope: short + type: string + - name: resource-version + description: Onap subscriber resource version + scope: long + type: string + - name: subscriber-type + description: Onap subscriber type + scope: long + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-name} + method: GET + success_codes: + - 200 + result_map: + name: $b{$.global-customer-id} + subscriber-name: $b{$.subscriber-name} + subscriber-type: $b{$.subscriber-type} + resource-version: $b{$.resource-version} + sample_response: + body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-create-schema-casablanca.yaml new file mode 100644 index 00000000..7eff20f8 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-create-schema-casablanca.yaml @@ -0,0 +1,48 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: service-type-create +description: Add a service type in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org +parameters: + - name: service-type + description: Onap service type + type: string + short_option: x + long_option: service-type + is_optional: false + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: y + long_option: service-type-id + is_optional: true + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/service-design-and-creation/services/service/${service-type-id} + method: PUT + body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-delete-schema-casablanca.yaml new file mode 100644 index 00000000..46373154 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-delete-schema-casablanca.yaml @@ -0,0 +1,46 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: service-type-delete +description: Delete a service type from Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: x + long_option: service-type-id + is_optional: true + - name: resource-version + description: Onap service resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-list-schema-casablanca.yaml new file mode 100644 index 00000000..0993fcd7 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/service-type/service-type-list-schema-casablanca.yaml @@ -0,0 +1,52 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: service-type-list +description: List the service types configured in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: service-type-id + description: Onap cloud service + scope: short + type: string + - name: service-type + description: Onap cloud service + scope: short + type: string + - name: resource-version + description: Onap cloud service resource version + scope: short + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/service-design-and-creation/services + method: GET + success_codes: + - 200 + - 404 + result_map: + service-type: $b{service.[*].service-description} + service-type-id: $b{service.[*].service-id} + resource-version: $b{service.[*].resource-version} diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-casablanca.yaml new file mode 100644 index 00000000..d43ea58f --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-casablanca.yaml @@ -0,0 +1,70 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: subscription-create +description: Create a subscription of a customer for given service in specific cloud region in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: cloud-name + description: Onap cloud name + type: string + short_option: z + long_option: cloud-name + is_optional: true + - name: cloud-region + description: Onap cloud region + type: string + short_option: r + long_option: cloud-region + is_optional: true + - name: cloud-tenant-id + description: Onap cloud tenant id + type: string + short_option: c + long_option: cloud-tenant-id + is_optional: true + - name: service-type + description: Onap service type + type: string + short_option: e + long_option: service-type + is_optional: false + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} + method: PUT + context: + remove_empty_node: true + body: '{"service-type":"${service-type}"}' + success_codes: + - 200 + - 201 + sample_response: + body: '' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-delete-schema-casablanca.yaml new file mode 100644 index 00000000..2e954770 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-delete-schema-casablanca.yaml @@ -0,0 +1,55 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: subscription-delete +description: Delete the subscription for a given customer in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: service-type + description: Onap subscribtion id + type: string + short_option: y + long_option: service-type + is_optional: false + - name: resource-version + description: Onap subscription resource version + type: string + short_option: g + long_option: resource-version + is_optional: true +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 + + + diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-list-schema-casablanca.yaml new file mode 100644 index 00000000..d04077d9 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-list-schema-casablanca.yaml @@ -0,0 +1,77 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: subscription-list +description: Lists the subscription for a given customer in Onap + +info: + product: onap-casablanca + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: service-type + description: Onap service type + scope: short + type: string + - name: resource-version + description: Onap subscription resource version + scope: short + type: string + - name: tenant + description: Onap tenant name + scope: long + type: string + - name: region + description: Onap region name + scope: long + type: string + - name: cloud + description: Onap cloud name + scope: long + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions + method: GET + success_codes: + - 200 + - 404 + result_map: + service-type: $b{$.service-subscription.[*].service-type} + resource-version: $b{$.service-subscription.[*].resource-version} + tenant: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'tenant.tenant-id')].relationship-value} + region: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-region-id')].relationship-value} + cloud: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-owner')].relationship-value} + + sample_response: + body: '{"service-subscription":[{"service-type":"vTest","resource-version":"1504091375183","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/26ab7af6-96cc-4c4e-814a-e533af4ef9f6","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"att-aic"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"AAIAIC25"},{"relationship-key":"tenant.tenant-id","relationship-value":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"test"}]}]}}]}' + + + + diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-casablanca.yaml deleted file mode 100644 index 9f998370..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-casablanca.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: customer-create -description: Create a customer in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: subscriber-name - description: Onap subscriber name - type: string - short_option: y - long_option: subscriber-name - is_optional: false - -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-name} - method: PUT - body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' - success_codes: - - 201 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-casablanca.yaml deleted file mode 100644 index 9ce03918..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-casablanca.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: customer-delete -description: Delete a customer from Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-id - description: Onap customer id - type: string - short_option: x - long_option: customer-id - is_optional: false - - name: resource-version - description: Onap customer resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: false -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-id}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-casablanca.yaml deleted file mode 100644 index 997cd951..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-casablanca.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: customer-list -description: Lists the registered customers in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: resource-version - description: Onap customer resource version - scope: short - type: string -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers - method: GET - success_codes: - - 200 - - 404 - result_map: - name: $b{customer.[*].global-customer-id} - resource-version: $b{customer.[*].resource-version} diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-casablanca.yaml deleted file mode 100644 index 65c512f6..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-casablanca.yaml +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: customer-show -description: Retrieves the given registered customer in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: subscriber-name - description: Onap subscriber name - scope: short - type: string - - name: resource-version - description: Onap subscriber resource version - scope: long - type: string - - name: subscriber-type - description: Onap subscriber type - scope: long - type: string -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-name} - method: GET - success_codes: - - 200 - result_map: - name: $b{$.global-customer-id} - subscriber-name: $b{$.subscriber-name} - subscriber-type: $b{$.subscriber-type} - resource-version: $b{$.resource-version} - sample_response: - body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-casablanca.yaml deleted file mode 100644 index 7eff20f8..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-casablanca.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: service-type-create -description: Add a service type in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org -parameters: - - name: service-type - description: Onap service type - type: string - short_option: x - long_option: service-type - is_optional: false - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: y - long_option: service-type-id - is_optional: true - -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/service-design-and-creation/services/service/${service-type-id} - method: PUT - body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-casablanca.yaml deleted file mode 100644 index 46373154..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-casablanca.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: service-type-delete -description: Delete a service type from Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: x - long_option: service-type-id - is_optional: true - - name: resource-version - description: Onap service resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: true -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-casablanca.yaml deleted file mode 100644 index 0993fcd7..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-casablanca.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: service-type-list -description: List the service types configured in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -results: - direction: landscape - attributes: - - name: service-type-id - description: Onap cloud service - scope: short - type: string - - name: service-type - description: Onap cloud service - scope: short - type: string - - name: resource-version - description: Onap cloud service resource version - scope: short - type: string -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/service-design-and-creation/services - method: GET - success_codes: - - 200 - - 404 - result_map: - service-type: $b{service.[*].service-description} - service-type-id: $b{service.[*].service-id} - resource-version: $b{service.[*].resource-version} diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-casablanca.yaml deleted file mode 100644 index d43ea58f..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-casablanca.yaml +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: subscription-create -description: Create a subscription of a customer for given service in specific cloud region in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: cloud-name - description: Onap cloud name - type: string - short_option: z - long_option: cloud-name - is_optional: true - - name: cloud-region - description: Onap cloud region - type: string - short_option: r - long_option: cloud-region - is_optional: true - - name: cloud-tenant-id - description: Onap cloud tenant id - type: string - short_option: c - long_option: cloud-tenant-id - is_optional: true - - name: service-type - description: Onap service type - type: string - short_option: e - long_option: service-type - is_optional: false - -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} - method: PUT - context: - remove_empty_node: true - body: '{"service-type":"${service-type}"}' - success_codes: - - 200 - - 201 - sample_response: - body: '' diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-casablanca.yaml deleted file mode 100644 index 2e954770..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-casablanca.yaml +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: subscription-delete -description: Delete the subscription for a given customer in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: service-type - description: Onap subscribtion id - type: string - short_option: y - long_option: service-type - is_optional: false - - name: resource-version - description: Onap subscription resource version - type: string - short_option: g - long_option: resource-version - is_optional: true -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 - - - diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-casablanca.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-casablanca.yaml deleted file mode 100644 index d04077d9..00000000 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-casablanca.yaml +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -open_cli_schema_version: 1.0 -name: subscription-list -description: Lists the subscription for a given customer in Onap - -info: - product: onap-casablanca - service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: service-type - description: Onap service type - scope: short - type: string - - name: resource-version - description: Onap subscription resource version - scope: short - type: string - - name: tenant - description: Onap tenant name - scope: long - type: string - - name: region - description: Onap region name - scope: long - type: string - - name: cloud - description: Onap cloud name - scope: long - type: string -http: - service: - auth: basic - mode: direct - request: - uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions - method: GET - success_codes: - - 200 - - 404 - result_map: - service-type: $b{$.service-subscription.[*].service-type} - resource-version: $b{$.service-subscription.[*].resource-version} - tenant: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'tenant.tenant-id')].relationship-value} - region: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-region-id')].relationship-value} - cloud: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-owner')].relationship-value} - - sample_response: - body: '{"service-subscription":[{"service-type":"vTest","resource-version":"1504091375183","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/26ab7af6-96cc-4c4e-814a-e533af4ef9f6","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"att-aic"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"AAIAIC25"},{"relationship-key":"tenant.tenant-id","relationship-value":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"test"}]}]}}]}' - - - - -- cgit 1.2.3-korg