aboutsummaryrefslogtreecommitdiffstats
path: root/validate/validation/src/test/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'validate/validation/src/test/java/org')
-rw-r--r--validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
index 71d015b5..6a6d3823 100644
--- a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
+++ b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
@@ -57,12 +57,19 @@ public class OnapValidationTest {
}
@Test
- public void validateCommandSchemas() throws IOException, OnapCommandException {
- OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("cli-1.0");
- for (ExternalSchema sch : OnapCommandRegistrar.getRegistrar().listCommandInfo()) {
- System.out.println(
+ public void validateCommandsResult() throws IOException, OnapCommandException {
+ for (String version: OnapCommandRegistrar.getRegistrar().getAvailableProductVersions()) {
+ OnapCommandRegistrar.getRegistrar().setEnabledProductVersion(version);
+ System.out.println(version);
+ System.out.println("==========================\n\n");
+ for (ExternalSchema sch : OnapCommandRegistrar.getRegistrar().listCommandInfo()) {
+ if (sch.getCmdVersion().equals(version)) {
+ System.out.println(
"************************* validate '" + sch.getCmdName() + "' *******************************");
- this.handle(new String[] { "schema-validate", "-l", sch.getSchemaName(), "-i"});
+ OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("cli-1.0");
+ this.handle(new String[] { "schema-validate", "-l", sch.getSchemaName(), "-i"});
+ }
+ }
}
}