From 2741f49b3b5e92c5c31f44133fd458c4f15b5479 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 1 Aug 2017 19:56:00 +0530 Subject: Populate default param based on no-auth Based on no-auth customise the default parameter for onap-command. e.g. If "no-auth = true" then command should not add default parameter "onap-username, onap-password, msb-url and no-auth". Issue-Id: CLI-22 Change-Id: Ic9228feb1deb7e6f24eb9b9f0c8f15fd45364e94 Signed-off-by: subhash kumar singh --- main/src/test/java/org/onap/cli/main/OnapCliMainTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main') 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 145f7462..754dff83 100644 --- a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java +++ b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java @@ -102,8 +102,7 @@ public class OnapCliMainTest { } this.handle(new String[] { "sample-create", "--help" }); OnapCommand cmd = OnapCommandRegistrar.getRegistrar().get("sample-create"); - List args = new ArrayList<>(Arrays.asList(new String[] { "sample-create", "-u", "admin", "-p", - "Changeme_123", "-m", "http://192.168.99.100:80", "--service-name", "test-service", "-i", "ip1", "-i", + List args = new ArrayList<>(Arrays.asList(new String[] { "sample-create", "--service-name", "test-service", "-i", "ip1", "-i", "ip2", "-o", "port1=value1", "-o", "port2=value2" })); OnapCliUtils.populateParams(cmd.getParameters(), args); } -- cgit 1.2.3-korg