summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-sample-1.1.yaml16
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-moco.json25
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/vnfm/vnfm-list-schema-1.1-sample.yaml14
3 files changed, 39 insertions, 16 deletions
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 |
+ +--------------------------------------+--------------------------------------+------------------+------------------+