Search in sources :

Example 16 with ValidationRuleSet

use of org.commonjava.indy.promote.model.ValidationRuleSet in project indy by Commonjava.

the class AbstractValidationRuleTest method getRuleSet.

protected ValidationRuleSet getRuleSet() {
    ValidationRuleSet ruleSet = new ValidationRuleSet();
    ruleSet.setName("test");
    ruleSet.setStoreKeyPattern(new StoreKey(group, TARGET_NAME).toString());
    ruleSet.setRuleNames(Collections.singletonList(getRuleScriptFile()));
    return ruleSet;
}
Also used : ValidationRuleSet(org.commonjava.indy.promote.model.ValidationRuleSet) StoreKey(org.commonjava.indy.model.core.StoreKey)

Aggregations

ValidationRuleSet (org.commonjava.indy.promote.model.ValidationRuleSet)16 HashMap (java.util.HashMap)2 ChangeSummary (org.commonjava.indy.audit.ChangeSummary)2 StoreKey (org.commonjava.indy.model.core.StoreKey)2 ValidationRuleMapping (org.commonjava.indy.promote.validate.model.ValidationRuleMapping)2 DataFile (org.commonjava.indy.subsys.datafile.DataFile)2 Test (org.junit.Test)2 Logger (org.slf4j.Logger)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 File (java.io.File)1 IOException (java.io.IOException)1 IndyDataException (org.commonjava.indy.data.IndyDataException)1 ArtifactStore (org.commonjava.indy.model.core.ArtifactStore)1 ValidationRequest (org.commonjava.indy.promote.validate.model.ValidationRequest)1 EventMetadata (org.commonjava.maven.galley.event.EventMetadata)1