diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2019-02-28 12:12:46 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2019-02-28 12:12:46 +0530 |
commit | c9f4e87e86c166ca5ba641dbb99d8a6a5f759e3a (patch) | |
tree | cf83bc99817ce58dc856e8485e7da78e388e33f0 /profiles/http/src/test/java | |
parent | 66ea89a04f3ad7476697e87fd2a26c4edd52dafd (diff) |
HTTP: Add multipart support with multiple files
Issue-ID: CLI-129
Change-Id: I65a4d48bb7ce2922043739b83fdc13de7d2f584d
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 | 50 |
1 files changed, 0 insertions, 50 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 deleted file mode 100644 index 0bf073e7..00000000 --- a/profiles/http/src/test/java/org/onap/cli/fw/http/schema/ValidateSchemaTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2017 Huawei Technologies Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.onap.cli.fw.http.schema; - -import static org.junit.Assert.assertTrue; - -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 - public void validateTest() throws OnapCommandException { - - OnapCommand cmd1 = new OnapCommand() { - @Override - protected void run() throws OnapCommandException {} - }; - 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 - } -} |