summaryrefslogtreecommitdiffstats
path: root/plugins/aai
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:35:40 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:35:40 +0530
commitad9350d9504391a45a470d5bfdb4a18bfd36c42e (patch)
tree482210ebc012ef09de3363f1d8ae5034dc593c50 /plugins/aai
parent92d8221c71c9d66a6760c9fa9eb23d982631ec90 (diff)
Add sample for vnfm-show
CLI-57 Change-Id: Ia56795a4541b489e5ed73b62ae2c1f6f439bb5d7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-sample-1.1.yaml23
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-moco.json35
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-show-schema-1.1-sample.yaml22
3 files changed, 57 insertions, 23 deletions
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 |
+ +----------+------------------+