From 5128763ab2770b258320ce4876c3464086d4cc46 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:55:49 +0530 Subject: service-type samples Change-Id: I99183c1f655163d39cd63b000cbb9dca924da728 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- .../service-type-create-schema-dublin-moco.json | 21 ++++++++++ .../service-type-create-schema-dublin-sample.yaml | 10 +++++ .../service-type-delete-schema-dublin-moco.json | 18 ++++++++ .../service-type-delete-schema-dublin-sample.yaml | 10 +++++ .../service-type-list-schema-dublin-moco.json | 48 ++++++++++++++++++++++ .../service-type-list-schema-dublin-sample.yaml | 10 +++++ 6 files changed, 117 insertions(+) create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-moco.json new file mode 100644 index 00000000..69423848 --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-moco.json @@ -0,0 +1,21 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v13/service-design-and-creation/services/service/tosca_vnf_validation", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-278f4b1f-de6f-4709-8fa2-f0d06a3e8fd7", + "Content-Type" : "application/json" + }, + "json" : { + "service-description" : "tosca_vnf_validation", + "service-id" : "tosca_vnf_validation" + } + }, + "response" : { + "status" : 201, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..afe4fc8c --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: service-type-create +version: onap-dublin +samples: + sample1: + name: service-type-create + input: --format json --service-type tosca_vnf_validation --service-type-id tosca_vnf_validation + moco: service-type-create-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json new file mode 100644 index 00000000..fe84faba --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json @@ -0,0 +1,18 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v13/service-design-and-creation/services/service/tosca_vnf_validation", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-0a160884-549b-4a63-8c26-631f1097dfa7", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 204, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml new file mode 100644 index 00000000..8f6ac49d --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: service-type-delete +version: onap-dublin +samples: + sample1: + name: service-type-delete + input: --format json --resource-version 1567068649380 --service-type-id tosca_vnf_validation + moco: service-type-delete-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json new file mode 100644 index 00000000..b7faf00c --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json @@ -0,0 +1,48 @@ +[ { + "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-75560ef7-f314-49bd-b825-4b282c49829a", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "service" : [ { + "service-id" : "e8cb8968-5411-478b-906a-f28747de72cd", + "service-description" : "vFW", + "resource-version" : "1564140431957" + }, { + "service-id" : "60330738-6cd0-4032-af2a-3088a03d4f47", + "service-description" : "vLB", + "resource-version" : "1564455509142" + }, { + "service-id" : "47412b60-6fb0-4b57-b801-77e0cbb69441", + "service-description" : "vCPE", + "resource-version" : "1564455509234" + }, { + "service-id" : "399e426b-2467-4575-8aa3-78ca766f9f37", + "service-description" : "vFWCL", + "resource-version" : "1564455509053" + }, { + "service-id" : "51afd5ba-bf2d-460c-b9a4-302fd70aec1c", + "service-description" : "vIMS", + "resource-version" : "1564455509330" + }, { + "service-id" : "tosca_vnf_validation", + "service-description" : "tosca_vnf_validation", + "resource-version" : "1567068649380" + }, { + "service-id" : "e3a3e05d-2179-4f04-b6ab-0a87909caf49", + "service-description" : "gNB", + "resource-version" : "1564455509431" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml new file mode 100644 index 00000000..abd72b1d --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: service-type-list +version: onap-dublin +samples: + sample1: + name: service-type-list + input: --format json + moco: service-type-list-schema-dublin-moco.json + output: | + [{"resource-version":"1564140431957","service-type":"vFW","service-type-id":"e8cb8968-5411-478b-906a-f28747de72cd"},{"resource-version":"1564455509142","service-type":"vLB","service-type-id":"60330738-6cd0-4032-af2a-3088a03d4f47"},{"resource-version":"1564455509234","service-type":"vCPE","service-type-id":"47412b60-6fb0-4b57-b801-77e0cbb69441"},{"resource-version":"1564455509053","service-type":"vFWCL","service-type-id":"399e426b-2467-4575-8aa3-78ca766f9f37"},{"resource-version":"1564455509330","service-type":"vIMS","service-type-id":"51afd5ba-bf2d-460c-b9a4-302fd70aec1c"},{"resource-version":"1567068649380","service-type":"tosca_vnf_validation","service-type-id":"tosca_vnf_validation"},{"resource-version":"1564455509431","service-type":"gNB","service-type-id":"e3a3e05d-2179-4f04-b6ab-0a87909caf49"}] -- cgit 1.2.3-korg