diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-04-27 11:40:48 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-04-27 11:40:48 +0530 |
commit | f0c5a4ebf825a34bfaef70d19733721d1d6ceb69 (patch) | |
tree | cb46113d407ce6d6c16220bdf7b35bef1f0228a7 /profiles/http/src/test/java | |
parent | b07f7593010c30ce27e0f4ce97b84255d8480217 (diff) |
Stablize the verification step by testing sample
Issue-ID: CLI-100
Change-Id: Ib9440b56012045cf8714b120a91ee4c36438a4fe
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles/http/src/test/java')
-rw-r--r-- | profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java b/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java index ddf30ba7..0bf073e7 100644 --- a/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java +++ b/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java @@ -23,7 +23,9 @@ import java.util.List; import org.junit.Test; import org.onap.cli.fw.cmd.OnapCommand; import org.onap.cli.fw.error.OnapCommandException; +import org.onap.cli.fw.registrar.OnapCommandRegistrar; import org.onap.cli.fw.schema.OnapCommandSchemaLoader; +import org.onap.cli.main.OnapCli; public class ValidateSchemaTest { @Test @@ -36,4 +38,13 @@ public class ValidateSchemaTest { List<String> errorList1 = OnapCommandSchemaLoader.loadSchema(cmd1, "schema-validate-http.yaml", true, true); assertTrue(errorList1.size() > 0); } + + @Test + public void testVerify() throws OnapCommandException { + OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("open-cli"); + OnapCli onapCli = new OnapCli(new String[]{"sample-test-verify", "--verify"}); + onapCli.handle(); + + //mrkanag though it pass, when ran alone, It fails during mvn test phase, check it + } } |