From a59f5607eaf196e032990b3ca962f2378e45fa52 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Fri, 16 Feb 2018 13:01:15 +0000 Subject: Impl Verify feature for CLI Implement verify feature for CLI. So that command developer will come up with his mocking file and can use framework to develope the command. Change-Id: I0ac22aaa7284626de60c66e56e83bb75ec9d773d Issue-ID: CLI-74 Signed-off-by: subhash kumar singh --- validate/validation/pom.xml | 11 +- .../onap/cli/moco/OnapCommandHttpMocoServer.java | 221 --------------------- .../onap/cli/validation/OnapValidationTest.java | 140 +++++++++++-- .../sample/sample-test-verify-schema-1.1-moco.json | 34 ++++ .../sample-test-verify-schema-1.1-sample.yaml | 43 ++++ .../sample-test-verify-schema-1.1.yaml | 72 +++++++ 6 files changed, 276 insertions(+), 245 deletions(-) delete mode 100644 validate/validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java create mode 100644 validate/validation/src/test/resources/open-cli-sample/sample/sample-test-verify-schema-1.1-moco.json create mode 100644 validate/validation/src/test/resources/open-cli-sample/sample/sample-test-verify-schema-1.1-sample.yaml create mode 100644 validate/validation/src/test/resources/open-cli-schema/sample-test-verify-schema-1.1.yaml (limited to 'validate') diff --git a/validate/validation/pom.xml b/validate/validation/pom.xml index 26f507d6..3dbe456f 100644 --- a/validate/validation/pom.xml +++ b/validate/validation/pom.xml @@ -31,12 +31,6 @@ cli/validate/validation jar - - com.github.dreamhead - moco-runner - 0.11.1 - test - junit junit @@ -83,6 +77,11 @@ cli-products-onap-amsterdam-features-aai ${project.version} + + commons-io + commons-io + 2.6 +