Converts a given yamlString into a JsonString.
+ *Example Usage:
*{@code * String jsonString = convertToJson(yourYamlString);} *- * @param yamlString - * @return JsonString + * @param yamlString the yaml to convert + * @return the json conversion of the yaml string. */ - public static String convertToJson(String yamlString) { - Yaml yaml= new Yaml(); - Map
{@code - * * Schema jsonSchema = returnSchema();} - * *- * @return Schema the schema for the current jenkins instance + *
Example Usage:
+ *{@code + * Schema jsonSchema = returnSchema();} + *+ * + * @return the schema for the current jenkins instance */ - public static Schema returnSchema() throws Exception{ + public static Schema returnSchema() { JSONObject schemaObject = generateSchema(); JSONObject jsonSchema = new JSONObject( new JSONTokener(schemaObject.toString())); @@ -229,34 +244,49 @@ public static Schema returnSchema() throws Exception{ } /** - * Validates a given jsonObject against the schema generated for the current live jenkins instance - * * Example Usage: - * * *
{@code - * * * assertTrue(validateSchema(jsonSubject));} - * * *- * @param jsonSubject The json Object that needs to be validated - * @return true if it's valid else returns false + * Validates a given jsonObject against the schema generated for the current live jenkins + * instance. + * + *
Example Usage:
+ *{@code + * assertThat(validateSchema(convertYamlFileToJson(this, "invalidSchemaConfig.yml")), + * contains("#/jenkins/numExecutors: expected type: Number, found: String")); + * }+ * + *
{@code + * assertThat(validateSchema(convertYamlFileToJson(this, "validConfig.yml")), + * empty()); + * }+ * + * @param jsonSubject the json object that needs to be validated + * @return a list of validation errors, empty list if no errors */ - public static boolean validateSchema(JSONObject jsonSubject) { + public static List
{@code - * * JSONObject jsonObject = convertYamlFileToJson("filename");} - * *+ *
Example Usage:
+ *{@code + * JSONObject jsonObject = convertYamlFileToJson(this, "filename");} + *+ * + * @param clazz the class used for loading resources, normally you want to pass 'this' * @param yamlFileName the name of the yaml file that needs to be converted * @return JSONObject pertaining to that yaml file. + * @throws URISyntaxException if an invalid URI is passed. */ - public static JSONObject convertYamlFileToJson(Object clazz, String yamlFileName) throws Exception { + public static JSONObject convertYamlFileToJson(Object clazz, String yamlFileName) + throws URISyntaxException { String yamlStringContents = toStringFromYamlFile(clazz, yamlFileName); return new JSONObject(new JSONTokener(convertToJson(yamlStringContents))); } diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/misc/jmh/CascJmhBenchmarkState.java b/test-harness/src/main/java/io/jenkins/plugins/casc/misc/jmh/CascJmhBenchmarkState.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/misc/jmh/CascJmhBenchmarkState.java rename to test-harness/src/main/java/io/jenkins/plugins/casc/misc/jmh/CascJmhBenchmarkState.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/AgentProtocolsTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/AgentProtocolsTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/AgentProtocolsTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/AgentProtocolsTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/BackwardCompatibilityTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/BackwardCompatibilityTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/BackwardCompatibilityTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/BackwardCompatibilityTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/CascJmhBenchmarkStateTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/CascJmhBenchmarkStateTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/CascJmhBenchmarkStateTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/CascJmhBenchmarkStateTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/ConfigurationAsCodeTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/ConfigurationAsCodeTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/ConfigurationAsCodeTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/ConfigurationAsCodeTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/DetectMissingVaultPluginTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/DetectMissingVaultPluginTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/DetectMissingVaultPluginTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/DetectMissingVaultPluginTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/JenkinsConfigTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/JenkinsConfigTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/JenkinsConfigTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/JenkinsConfigTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/JenkinsConfiguredWithCodeRuleClassRuleTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/JenkinsConfiguredWithCodeRuleClassRuleTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/JenkinsConfiguredWithCodeRuleClassRuleTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/JenkinsConfiguredWithCodeRuleClassRuleTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/SampleBenchmark.java b/test-harness/src/test/java/io/jenkins/plugins/casc/SampleBenchmark.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/SampleBenchmark.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/SampleBenchmark.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java similarity index 80% rename from plugin/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java index df0ac85d59..804c900cf7 100644 --- a/plugin/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java +++ b/test-harness/src/test/java/io/jenkins/plugins/casc/SchemaGenerationTest.java @@ -8,9 +8,10 @@ import static io.jenkins.plugins.casc.SchemaGeneration.retrieveDocStringFromAttribute; import static io.jenkins.plugins.casc.misc.Util.convertYamlFileToJson; import static io.jenkins.plugins.casc.misc.Util.validateSchema; -import static junit.framework.TestCase.assertTrue; +import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.empty; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertThat; public class SchemaGenerationTest { @@ -19,12 +20,13 @@ public class SchemaGenerationTest { @Test public void validSchemaShouldSucceed() throws Exception { - assertTrue(validateSchema(convertYamlFileToJson(this, "validSchemaConfig.yml"))); + assertThat(validateSchema(convertYamlFileToJson(this, "validSchemaConfig.yml")), empty()); } @Test public void invalidSchemaShouldNotSucceed() throws Exception { - assertFalse(validateSchema(convertYamlFileToJson(this,"invalidSchemaConfig.yml"))); + assertThat(validateSchema(convertYamlFileToJson(this, "invalidSchemaConfig.yml")), + contains("#/jenkins/numExecutors: expected type: Number, found: String")); } @Test diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/Security1290Test.java b/test-harness/src/test/java/io/jenkins/plugins/casc/Security1290Test.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/Security1290Test.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/Security1290Test.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/TokenReloadActionTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/TokenReloadActionTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/TokenReloadActionTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/TokenReloadActionTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/MavenConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/MavenConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/MavenConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/MavenConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/ProxyConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/ProxyConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/ProxyConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/ProxyConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/core/UpdateCenterConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/core/UpdateCenterConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/core/UpdateCenterConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/core/UpdateCenterConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/ClassParametersAreNonnullByDefault.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/ClassParametersAreNonnullByDefault.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/ClassParametersAreNonnullByDefault.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/ClassParametersAreNonnullByDefault.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/NonnullParameterConstructor.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/NonnullParameterConstructor.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/NonnullParameterConstructor.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/NonnullParameterConstructor.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersAreNonnullByDefault.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersAreNonnullByDefault.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersAreNonnullByDefault.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersAreNonnullByDefault.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersNonNullCheckForNull.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersNonNullCheckForNull.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersNonNullCheckForNull.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/PackageParametersNonNullCheckForNull.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/package-info.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/package-info.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/package-info.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/nonnullparampackage/package-info.java diff --git a/plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/package-info.java b/test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/package-info.java similarity index 100% rename from plugin/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/package-info.java rename to test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/nonnull/package-info.java diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/AgentProtocolsTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/AgentProtocolsTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/AgentProtocolsTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/AgentProtocolsTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/ArtifactoryBuilderTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/ArtifactoryBuilderTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/ArtifactoryBuilderTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/ArtifactoryBuilderTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/BackwardCompatibilityTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/BackwardCompatibilityTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/BackwardCompatibilityTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/BackwardCompatibilityTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/GetConfiguratorsTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/GetConfiguratorsTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/GetConfiguratorsTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/GetConfiguratorsTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/GlobalSecurityConfiguration.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/GlobalSecurityConfiguration.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/GlobalSecurityConfiguration.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/GlobalSecurityConfiguration.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/JenkinsConfigTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/JenkinsConfigTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/JenkinsConfigTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/JenkinsConfigTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/aNonEmpty.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/aNonEmpty.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/aNonEmpty.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/aNonEmpty.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/admin.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/admin.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/admin.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/admin.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/benchmarks.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/benchmarks.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/benchmarks.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/benchmarks.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_disabled.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_disabled.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_disabled.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_disabled.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_enabled.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_enabled.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_enabled.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/AdminWhitelistRuleConfigurator/Agent2MasterSecurityKillSwitch_enabled.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/HeteroDescribable.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/HeteroDescribable.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/HeteroDescribable.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/HeteroDescribable.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfiguratorTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/JenkinsConfiguratorCloudSupportTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/MavenConfiguratorTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/MavenConfiguratorTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/MavenConfiguratorTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/MavenConfiguratorTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/Primitives.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/Primitives.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/Primitives.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/Primitives.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/Proxy.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/Proxy.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/Proxy.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/Proxy.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/ProxyMinimal.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/ProxyMinimal.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/ProxyMinimal.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/ProxyMinimal.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/ProxyWithSecrets.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/ProxyWithSecrets.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/ProxyWithSecrets.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/ProxyWithSecrets.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/SetEnvironmentVariable.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/SetEnvironmentVariable.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/SetEnvironmentVariable.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/SetEnvironmentVariable.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/UnsecuredAuthorizationStrategyConfiguratorTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/core/UpdateCenter.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/core/UpdateCenter.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/core/UpdateCenter.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/core/UpdateCenter.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/empty.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/empty.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/empty.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/empty.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DataBoundDescriptorNonNull.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DataBoundDescriptorNonNull.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DataBoundDescriptorNonNull.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DataBoundDescriptorNonNull.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_camelCase.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_camelCase.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_camelCase.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_camelCase.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_lowerCase.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_lowerCase.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_lowerCase.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DescriptorConfiguratorTest_lowerCase.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfigure.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfigure.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfigure.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/DuplicateKeyDescribableConfigure.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/MissingConfiguratorTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorRestrictedTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorRestrictedTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorRestrictedTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorRestrictedTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/invalidSchemaConfig.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/invalidSchemaConfig.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/invalidSchemaConfig.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/invalidSchemaConfig.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/merge1.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/merge1.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/merge1.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/merge1.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/merge2.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/merge2.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/merge2.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/merge2.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/merge3.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/merge3.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/merge3.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/merge3.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/multi-line1.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/multi-line1.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/multi-line1.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/multi-line1.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/multi-line2.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/multi-line2.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/multi-line2.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/multi-line2.yml diff --git a/plugin/src/test/resources/io/jenkins/plugins/casc/validSchemaConfig.yml b/test-harness/src/test/resources/io/jenkins/plugins/casc/validSchemaConfig.yml similarity index 100% rename from plugin/src/test/resources/io/jenkins/plugins/casc/validSchemaConfig.yml rename to test-harness/src/test/resources/io/jenkins/plugins/casc/validSchemaConfig.yml