From ebd0a91e0a98033dc2ac61b82fc13485ee212bf7 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:55:51 +0530 Subject: tenant samples Change-Id: I8b01fa9555f7051c57766926836f283a678cc9b5 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- .../tenant/tenant-create-schema-dublin-moco.json | 21 +++++++++++++++++++ .../tenant/tenant-create-schema-dublin-sample.yaml | 10 +++++++++ .../tenant/tenant-delete-schema-dublin-moco.json | 18 ++++++++++++++++ .../tenant/tenant-delete-schema-dublin-sample.yaml | 10 +++++++++ .../tenant/tenant-list-schema-dublin-moco.json | 24 ++++++++++++++++++++++ .../tenant/tenant-list-schema-dublin-sample.yaml | 10 +++++++++ 6 files changed, 93 insertions(+) create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json new file mode 100644 index 00000000..f8cb2c8b --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json @@ -0,0 +1,21 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-300c4e32-4fb2-4fe8-b238-e3cb13c2a9d1", + "Content-Type" : "application/json" + }, + "json" : { + "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe", + "tenant-name" : "ocomp" + } + }, + "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/infra/tenant/tenant-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..7e1c543e --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: tenant-create +version: onap-dublin +samples: + sample1: + name: tenant-create + input: --format json --region RegionOVP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe --cloud OCOMP --tenant-name ocomp + moco: tenant-create-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json new file mode 100644 index 00000000..417976f5 --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json @@ -0,0 +1,18 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-22a79b24-0ed5-475c-9c5e-fed1d4461bb3", + "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/infra/tenant/tenant-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml new file mode 100644 index 00000000..1a21b00e --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: tenant-delete +version: onap-dublin +samples: + sample1: + name: tenant-delete + input: --format json --region RegionOVP --resource-version 1567068676263 --cloud OCOMP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe + moco: tenant-delete-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json new file mode 100644 index 00000000..ea056231 --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json @@ -0,0 +1,24 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-be21d4e6-6e82-4a13-a1fb-0a2c6766e3e4", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "tenant" : [ { + "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe", + "tenant-name" : "ocomp", + "resource-version" : "1567068676263" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml new file mode 100644 index 00000000..c264bd0c --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: tenant-list +version: onap-dublin +samples: + sample1: + name: tenant-list + input: --format json --region RegionOVP --cloud OCOMP + moco: tenant-list-schema-dublin-moco.json + output: | + [{"resource-version":"1567068676263","tenant-id":"6fcac72c-a2cd-4d18-9f1d-09908ca08afe","tenant-name":"ocomp"}] -- cgit 1.2.3-korg