use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.
the class ProjectArtifactsRule_PomDeploymentTest method getRuleSet.
protected ValidationRuleSet getRuleSet() {
ValidationRuleSet ruleSet = new ValidationRuleSet();
ruleSet.setName("test");
ruleSet.setStoreKeyPattern("group:target");
ruleSet.setRuleNames(Collections.singletonList(getRuleScriptFile()));
ruleSet.setValidationParameters(Collections.singletonMap("classifierAndTypeSet", "sources:jar,javadoc:jar"));
return ruleSet;
}
use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.
the class ArtifactRefs_DependencyInAnotherRepoInGroup_RuleTest method getRuleSet.
@Override
protected ValidationRuleSet getRuleSet() {
ValidationRuleSet ruleSet = new ValidationRuleSet();
ruleSet.setName("test");
ruleSet.setStoreKeyPattern("group:target");
ruleSet.setRuleNames(Collections.singletonList(getRuleScriptFile()));
ruleSet.setValidationParameters(Collections.singletonMap("availableInStores", "group:other"));
return ruleSet;
}
use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.
the class ArtifactRefs_DependencyTwoExtraGroups_RuleTest method getRuleSet.
@Override
protected ValidationRuleSet getRuleSet() {
ValidationRuleSet ruleSet = new ValidationRuleSet();
ruleSet.setName("test");
ruleSet.setStoreKeyPattern("group:target");
ruleSet.setRuleNames(Collections.singletonList(getRuleScriptFile()));
ruleSet.setValidationParameters(Collections.singletonMap("availableInStores", "group:other,group:third"));
return ruleSet;
}
use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.
the class ArtifactRefs_PromoteWithParent_RuleTest method getRuleSet.
@Override
protected ValidationRuleSet getRuleSet() {
ValidationRuleSet ruleSet = new ValidationRuleSet();
ruleSet.setName("test");
ruleSet.setStoreKeyPattern("hosted:target");
ruleSet.setRuleNames(Collections.singletonList(getRuleScriptFile()));
return ruleSet;
}
use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.
the class AbstractValidationRuleTest method initTestData.
@Override
protected void initTestData(CoreServerFixture fixture) throws IOException {
writeDataFile("promote/rules/" + getRuleScriptFile(), getRuleScriptContent());
ValidationRuleSet rs = getRuleSet();
String json = new ObjectMapper().writeValueAsString(rs);
String rulesetPath = "promote/rule-sets/" + name.getMethodName() + ".json";
logger.info("Writing rule-set to: {}\nContents:\n\n{}\n\n", rulesetPath, json);
writeDataFile(rulesetPath, json);
super.initTestData(fixture);
}
Aggregations