use of org.commonjava.indy.koji.conf.IndyKojiConfig in project indy by Commonjava.
the class KojiMavenMetadataProviderTest method setup.
@Before
public void setup() throws Exception {
contentMetadata.clear();
Thread.currentThread().setName(named.getMethodName());
cacheMgr = new DefaultCacheManager();
String mdCacheName = "koji-maven-metadata";
cache = new CacheHandle(mdCacheName, cacheMgr.getCache(mdCacheName, true));
kojiConfig = new IndyKojiConfig();
kojiConfig.setEnabled(true);
kojiConfig.setLockTimeoutSeconds(2);
kojiConfig.setMaxConnections(2);
kojiConfig.setMetadataTimeoutSeconds(2);
kojiConfig.setRequestTimeoutSeconds(1);
kojiConfig.setStorageRootUrl(server.formatUrl("kojiroot"));
kojiConfig.setUrl(server.formatUrl("koji"));
kojiConfig.setTargetGroups(Collections.singletonMap("public", "public"));
}
Aggregations