From 911a0dde18b98fb66332596fd6bf69e991e0448f Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 13 Sep 2017 16:59:24 +0530 Subject: Add EMS show command Adds ems-show command. in addition, adds samples for other ems commands CLI-5 Change-Id: I778e4a855f009c557d04f2f8b3651ebabbab7112 Signed-off-by: Kanagaraj Manickam k00365106 --- .../onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml | 8 ++++++++ .../onap-cli-sample/esr/ems/ems-delete-sample-1.1.yaml | 8 ++++++++ .../onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml | 13 +++++++++++++ .../onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml | 14 ++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-delete-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml (limited to 'plugins/aai/src/test/resources/onap-cli-sample') diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml new file mode 100644 index 00000000..2856ba62 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: ems-register +version: onap-1.1 +samples: + sample1: + name: Create a ems + input: -z f962fa1e-d439-4b02-a122-cc38fd0da07c -b ems-1 -c OpenStack -e HW -q 1.0 -g http://locahost -i user -j password -x remote-path -d diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-delete-sample-1.1.yaml new file mode 100644 index 00000000..99a92785 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-delete-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: ems-unregister +version: onap-1.1 +samples: + sample1: + name: Delete the ems + input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c -y 1505298922586 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 new file mode 100644 index 00000000..88997812 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-list-sample-1.1.yaml @@ -0,0 +1,13 @@ +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-show-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml new file mode 100644 index 00000000..e11753ac --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-show-sample-1.1.yaml @@ -0,0 +1,14 @@ +onap_cli_sample_version: 1.0 + +name: ems-show +version: onap-1.1 +samples: + sample1: + name: Show the ems + input: -x f962fa1e-d439-4b02-a122-cc38fd0da07c -y 1505298922586 + output: | + +--------+------------+--------+----------+------------------+ + |name |type |vendor |version |url | + +--------+------------+--------+----------+------------------+ + |ems-1 |OpenStack |HW |1.0 |http://locahost | + +--------+------------+--------+----------+------------------+ -- cgit 1.2.3-korg