From f0c5a4ebf825a34bfaef70d19733721d1d6ceb69 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 27 Apr 2018 11:40:48 +0530 Subject: Stablize the verification step by testing sample Issue-ID: CLI-100 Change-Id: Ib9440b56012045cf8714b120a91ee4c36438a4fe Signed-off-by: Kanagaraj Manickam k00365106 --- .../java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'profiles/http/src/test/java') 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 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 + } } -- cgit 1.2.3-korg