aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/test/resources/onap-cli-sample
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:41:24 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 14:41:24 +0530
commit5a91bd68844b442177c4bce986dd62fb97093786 (patch)
tree05edebc3b5ab8b101959b15a0ea838090fb01d72 /plugins/aai/src/test/resources/onap-cli-sample
parentf478ff5df4713f2c14d2bb21ddf5662f13f923fe (diff)
Add samples for ems-list
CLI-57 Change-Id: I9d8adf03d7debe1ca20d1a26e555c1d3c3e573d9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test/resources/onap-cli-sample')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml13
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-moco.json23
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-sample.yaml14
3 files changed, 37 insertions, 13 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml
deleted file mode 100644
index 88997812..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: ems-list
-version: onap-1.1
-samples:
- sample1:
- name: List all ems
- output: |
- +--------------------------------------+------------------+
- |ems-id |resource-version |
- +--------------------------------------+------------------+
- |f962fa1e-d439-4b02-a122-cc38fd0da07c |1505298922586 |
- +--------------------------------------+------------------+
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-moco.json
new file mode 100644
index 00000000..4a2f1674
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-moco.json
@@ -0,0 +1,23 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v11/external-system/esr-ems-list",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-ed3e792b-9436-4ddd-ba76-3684dca3e4cf",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "esr-ems" : [ {
+ "ems-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554",
+ "resource-version" : "1509095358658"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-sample.yaml
new file mode 100644
index 00000000..41f7a63e
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-schema-1.1-sample.yaml
@@ -0,0 +1,14 @@
+onap_cli_sample_version: 1.0
+name: ems-list
+version: onap-1.1
+samples:
+ sample1:
+ name: ems-list
+ input:
+ moco: ems-list-schema-1.1-moco.json
+ ouput:|
+ +--------------------------------------+------------------+
+ |ems-id |resource-version |
+ +--------------------------------------+------------------+
+ |51a480ed-649c-4c47-a84b-f966dc4f9554 |1509095358658 |
+ +--------------------------------------+------------------+