diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-24 19:11:35 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-21 18:07:45 +0530 |
commit | 364e8b53db2825b415acdb512a0094b622373aed (patch) | |
tree | 781964027eade28861d531b21b16a73ca7b5c910 /framework/src/test/java/org/onap | |
parent | d2c0f8345fc83e04cfaf3d24b8a3392e6d18c67d (diff) |
Make auth login command parameters as part of cmd
Now auth commands parameters are added into the command
parameters list
Issue-Id: CLI-66
Change-Id: If6d7629b9efeb773f90ba53fb2ed8d6e464f3a73
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test/java/org/onap')
-rw-r--r-- | framework/src/test/java/org/onap/cli/fw/ad/OnapAuthClientCommandBasedTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/ad/OnapAuthClientCommandBasedTest.java b/framework/src/test/java/org/onap/cli/fw/ad/OnapAuthClientCommandBasedTest.java index 9c733c94..58b44f4a 100644 --- a/framework/src/test/java/org/onap/cli/fw/ad/OnapAuthClientCommandBasedTest.java +++ b/framework/src/test/java/org/onap/cli/fw/ad/OnapAuthClientCommandBasedTest.java @@ -16,6 +16,7 @@ package org.onap.cli.fw.ad; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Before; @@ -92,6 +93,17 @@ public class OnapAuthClientCommandBasedTest { } @Test + public void noCatalogYesAuthWithAdditionalParamsTest() throws OnapCommandException { + try { + OnapHttpCommand cmd = getCommand("sample-test-schema-yes-auth-with-additional-params-no-catalog.yaml"); + assertTrue(cmd.getParametersMap().containsKey("string-param")); + } catch (OnapCommandException e) { + fail("External command Yes Auth No Catalog failed to run"); + e.printStackTrace(System.out); + } + } + + @Test public void noCatalogNoAuthTest() throws OnapCommandException { try { OnapHttpCommand cmd = getCommand("sample-test-schema-no-auth-no-catalog.yaml"); |