From 92d8221c71c9d66a6760c9fa9eb23d982631ec90 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 27 Oct 2017 14:34:55 +0530 Subject: Add sample for vnfm-list CLI-57 Change-Id: I58bdadbfa124117f0791221c1376cd079785bb78 Signed-off-by: Kanagaraj Manickam k00365106 --- .../esr/vnfm/vnfm-list-sample-1.1.yaml | 16 -------------- .../esr/vnfm/vnfm-list-schema-1.1-moco.json | 25 ++++++++++++++++++++++ .../esr/vnfm/vnfm-list-schema-1.1-sample.yaml | 14 ++++++++++++ 3 files changed, 39 insertions(+), 16 deletions(-) delete mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-moco.json create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-sample.yaml (limited to 'plugins') diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-sample-1.1.yaml deleted file mode 100644 index e3a080ed..00000000 --- a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-sample-1.1.yaml +++ /dev/null @@ -1,16 +0,0 @@ -onap_cli_sample_version: 1.0 - -name: vnfm-list -version: onap-1.1 -samples: - sample1: - name: List all vnfm - output: | - +--------------------------------------+--------------------------------------+------------------------------------+------------------+ - |vnfm-id |vim-id |certificate-url |resource-version | - +--------------------------------------+--------------------------------------+------------------------------------+------------------+ - |f962fa1e-d439-4b02-a122-cc38fd0da07c |f962fa1e-d439-4b02-a122-cc38fd0da07c | |1505299563540 | - +--------------------------------------+--------------------------------------+------------------------------------+------------------+ - |htipl913-vnfm-id-val-44685 |example-vim-id-val-36801 |example-certificate-url-val-70931 |1505283495503 | - +--------------------------------------+--------------------------------------+------------------------------------+------------------+ - diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-moco.json new file mode 100644 index 00000000..5cfa56b5 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-moco.json @@ -0,0 +1,25 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v11/external-system/esr-vnfm-list", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-07be51f0-22b4-4ea0-a098-bf68ed59f2ce", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "esr-vnfm" : [ { + "vnfm-id" : "c0ecd788-22f4-49a4-a969-68051cd517e7", + "vim-id" : "acc5e14e-1320-4ab5-97fe-b7cc82ad03f2", + "certificate-url" : "", + "resource-version" : "1509094328901" + } ] + } + } +} ] \ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-sample.yaml new file mode 100644 index 00000000..fc26a107 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-sample.yaml @@ -0,0 +1,14 @@ +onap_cli_sample_version: 1.0 +name: vnfm-list +version: onap-1.1 +samples: + sample1: + name: vnfm-list + input: + moco: vnfm-list-schema-1.1-moco.json + ouput:| + +--------------------------------------+--------------------------------------+------------------+------------------+ + |vnfm-id |vim-id |certificate-url |resource-version | + +--------------------------------------+--------------------------------------+------------------+------------------+ + |c0ecd788-22f4-49a4-a969-68051cd517e7 |acc5e14e-1320-4ab5-97fe-b7cc82ad03f2 | |1509094328901 | + +--------------------------------------+--------------------------------------+------------------+------------------+ -- cgit 1.2.3-korg