From dfe02bb20d5e012dcaaacb2837bd932149ad1714 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 4 Oct 2018 14:39:01 +0530 Subject: Casablanca: AAI cloud-list Issue-ID: CLI-122 Change-Id: I20a96278a339d15382780d90e8e34e8370260ef9 Signed-off-by: Kanagaraj Manickam k00365106 --- .../cloud/cloud-list-schema-casablanca-moco.json | 25 ++++++++++++++++++++++ .../cloud/cloud-list-schema-casablanca-sample.yaml | 14 ++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample') diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json new file mode 100644 index 00000000..c539ac40 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json @@ -0,0 +1,25 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/cloud-infrastructure/cloud-regions", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-8465f051-c389-40ff-9a5c-8c7e1ac01b7c", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "cloud-region" : [ { + "cloud-owner" : "huawei-cloud", + "cloud-region-id" : "bangalore", + "sriov-automation" : "false", + "resource-version" : "1538643783460" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..6896428d --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: cloud-list +version: onap-casablanca +samples: + sample1: + name: cloud-list + input: + moco: cloud-list-schema-casablanca-moco.json + output: | + +--------------+------------+------------------+ + |cloud |region |resource-version | + +--------------+------------+------------------+ + |huawei-cloud |bangalore |1538643783460 | + +--------------+------------+------------------+ -- cgit 1.2.3-korg