From ad9350d9504391a45a470d5bfdb4a18bfd36c42e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 27 Oct 2017 14:35:40 +0530 Subject: Add sample for vnfm-show CLI-57 Change-Id: Ia56795a4541b489e5ed73b62ae2c1f6f439bb5d7 Signed-off-by: Kanagaraj Manickam k00365106 --- .../esr/vnfm/vnfm-show-sample-1.1.yaml | 23 -------------- .../esr/vnfm/vnfm-show-schema-1.1-moco.json | 35 ++++++++++++++++++++++ .../esr/vnfm/vnfm-show-schema-1.1-sample.yaml | 22 ++++++++++++++ 3 files changed, 57 insertions(+), 23 deletions(-) delete mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml (limited to 'plugins/aai/src/test/resources') diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml deleted file mode 100644 index 35c38d2b..00000000 --- a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml +++ /dev/null @@ -1,23 +0,0 @@ -onap_cli_sample_version: 1.0 - -name: vnfm-show -version: onap-1.1 -samples: - sample1: - name: Show the vnfm - input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c - output: | - +----------+------------------+ - |property |value | - +----------+------------------+ - |name |vnfm-2 | - +----------+------------------+ - |type |OpenStack | - +----------+------------------+ - |vendor |HW | - +----------+------------------+ - |version |1.0 | - +----------+------------------+ - |url |http://locahost | - +----------+------------------+ - diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json new file mode 100644 index 00000000..9eb10b3c --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json @@ -0,0 +1,35 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/c0ecd788-22f4-49a4-a969-68051cd517e7/esr-system-info-list/esr-system-info/c0ecd788-22f4-49a4-a969-68051cd517e7", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-c87981f1-c110-4d29-887e-12e44b96507c", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "esr-system-info-id" : "c0ecd788-22f4-49a4-a969-68051cd517e7", + "system-name" : "vnfm1", + "type" : "OpenStack", + "vendor" : "ONAP", + "version" : "1.0", + "service-url" : "http://10.0.1.1", + "user-name" : "admin", + "password" : "password", + "system-type" : "vnfm", + "ssl-cacert" : "", + "ssl-insecure" : false, + "ip-address" : "", + "port" : "", + "cloud-domain" : "", + "default-tenant" : "", + "resource-version" : "1509094329093" + } + } +} ] \ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml new file mode 100644 index 00000000..93b09e8b --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml @@ -0,0 +1,22 @@ +onap_cli_sample_version: 1.0 +name: vnfm-show +version: onap-1.1 +samples: + sample1: + name: vnfm-show + input: --vnfm-id c0ecd788-22f4-49a4-a969-68051cd517e7 + moco: vnfm-show-schema-1.1-moco.json + ouput:| + +----------+------------------+ + |property |value | + +----------+------------------+ + |name |vnfm1 | + +----------+------------------+ + |type |OpenStack | + +----------+------------------+ + |vendor |ONAP | + +----------+------------------+ + |version |1.0 | + +----------+------------------+ + |url |http://10.0.1.1 | + +----------+------------------+ -- cgit 1.2.3-korg