aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-26 10:04:10 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:38:52 +0530
commit39f345954434553d10e0cea114e15e0521ec9471 (patch)
tree652c0dae69f8238c41f903d9697160e3b3ed2960 /main
parent8e14f39a1c41a2b5bf793877926b312e4b6102d4 (diff)
Migrate onap-cli-schema into open-cli-schema
Issue-Id: CLI-66 Change-Id: I719719194bc5f21f4316380e606ce1a58f0f046c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main')
-rw-r--r--main/src/main/resources/onap-readme.txt34
-rw-r--r--main/src/test/java/org/onap/cli/main/OnapCliMainTest.java4
-rw-r--r--main/src/test/resources/open-cli-schema/sample-create-schema.yaml (renamed from main/src/test/resources/onap-cli-schema/sample-create-schema.yaml)0
3 files changed, 20 insertions, 18 deletions
diff --git a/main/src/main/resources/onap-readme.txt b/main/src/main/resources/onap-readme.txt
index 0795cf5e..39990700 100644
--- a/main/src/main/resources/onap-readme.txt
+++ b/main/src/main/resources/onap-readme.txt
@@ -1,23 +1,25 @@
-Onap Command-line interface (CLI).
+OPEN Command-line interface (CLI)
+==================================
- ____ __ ___
- ___ _ __ __ _ _ __ / ___| | |_ _|
- / _ \| '_ \ / _` | '_ \ | | | | | |
-| (_) | | | | (_| | |_) | | |___| |___ | |
- \___/|_| |_|\__,_| .__/ \____|_____|___|
- |_|
+ _____ _____ _ _____
+| _ | / __ \| | |_ _|
+| | | |_ __ ___ _ __ | / \/| | | |
+| | | | '_ \ / _ \ '_ \ | | | | | |
+\ \_/ / |_) | __/ | | | | \__/\| |_____| |_
+ \___/| .__/ \___|_| |_| \____/\_____/\___/
+ | |
+ |_|
+
+Provides unified commands to operate any cloud enabled software
+products from Linux/Web console. Configure the following environment
+variables, before using it:
-
-One Command to command whole Onap !! It provides the unified commands
-to access and operate Onap functionalities. To use this CLI, please
-configure the following environment variables:
-
-1. ONAP_MSB_URL - Onap Micro service bus(MSB) URL
-2. HOST_USERNAME - Onap user name
-3. HOST_PASSWORD - Onap user password
+1. HOST_URL - Catalog service URL or a service URL
+2. HOST_USERNAME - Service user name
+3. HOST_PASSWORD - Service password
To know the CLI version, type onap [-v|--version]
To know the CLI usage, type onap [-h|--help]
To know the usage of sub commands, type onap <command> [-h|--help]
-To know more, please refer the Onap wiki https://wiki.onap.org
+To know more, please refer the wiki https://wiki.onap.org
diff --git a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
index 0ac00d1f..acf66a52 100644
--- a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
+++ b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
@@ -77,7 +77,7 @@ public class OnapCliMainTest {
@Test
public void testVersionShort() {
- this.handle(new String[] { "--v" });
+ this.handle(new String[] { "-v" });
}
@Test
@@ -143,7 +143,7 @@ public class OnapCliMainTest {
}
@Test
- public void testHandleSampleCommandFailure() throws OnapCommandException {
+ public void testHandleSampleCommandFailure() throws OnapCommandException{
this.handle(new String[] { "sample-test", "--string-param"});
}
diff --git a/main/src/test/resources/onap-cli-schema/sample-create-schema.yaml b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
index ff24c0aa..ff24c0aa 100644
--- a/main/src/test/resources/onap-cli-schema/sample-create-schema.yaml
+++ b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml