summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-11 10:41:29 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-11 10:44:08 +0530
commit5a0dadc2c7439719142db3c7e2200d12face4b45 (patch)
tree4c4434a5e5baa4020688f32b725fde02302ca7f5 /main
parentfe2e261b250be6724c305d4c6f940ca35263596f (diff)
Migrate msb-url into host-url
CLI framework is being enhanced to support different service mode like direct and catalog and msb term is verfy specific to catalog mode. so its migrated to move to generic format CLI-29 Change-Id: I93f8354e2f32f7cae1660168ce403c76cca0587f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main')
-rw-r--r--main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
index c7fb7985..8870029b 100644
--- a/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
+++ b/main/src/test/java/org/onap/cli/main/utils/OnapCliUtilsTest.java
@@ -42,8 +42,8 @@ public class OnapCliUtilsTest {
param2.setName("onap-password");
param2.setParameterType(ParameterType.STRING);
OnapCommandParameter param3 = new OnapCommandParameter();
- param3.setLongOption("msb-url");
- param3.setName("msb-url");
+ param3.setLongOption("host-url");
+ param3.setName("host-url");
param3.setParameterType(ParameterType.STRING);
OnapCommandParameter param4 = new OnapCommandParameter();
param4.setLongOption("string-param");
@@ -62,13 +62,13 @@ public class OnapCliUtilsTest {
paramslist.add(param5);
String[] args = new String[] { "sample-create", "--onap-username", "admin", "--onap-password", "123",
- "--msb-url", "a@b.com", "--string-param", "blah", "--long-opt", "10" };
+ "--host-url", "a@b.com", "--string-param", "blah", "--long-opt", "10" };
OnapCliUtils.populateParams(paramslist, Arrays.asList(args));
List<String> expectedList = Arrays.asList(args);
Assert.assertEquals("onap-username", expectedList.get(2), param1.getValue());
Assert.assertEquals("onap-password", expectedList.get(4), param2.getValue());
- Assert.assertEquals("msb-url", expectedList.get(6), param3.getValue());
+ Assert.assertEquals("host-url", expectedList.get(6), param3.getValue());
Assert.assertEquals("string-param", expectedList.get(8), param4.getValue());
Assert.assertEquals("long-opt", expectedList.get(10), param5.getValue());
@@ -161,7 +161,7 @@ public class OnapCliUtilsTest {
param2.setParameterType(ParameterType.STRING);
OnapCommandParameter param3 = new OnapCommandParameter();
param3.setShortOption("r");
- param3.setName("msb-url");
+ param3.setName("host-url");
param3.setParameterType(ParameterType.STRING);
OnapCommandParameter param4 = new OnapCommandParameter();
param4.setShortOption("c");