Search in sources :

Example 1 with IndyPromoteClientModule

use of org.commonjava.indy.promote.client.IndyPromoteClientModule in project indy by Commonjava.

the class AbstractPromotionManagerTest method setupRepos.

@Before
public void setupRepos() throws Exception {
    final String changelog = "Setup " + name.getMethodName();
    final IndyPromoteClientModule module = client.module(IndyPromoteClientModule.class);
    System.out.printf("\n\n\n\nBASE-URL: %s\nPROMOTE-URL: %s\nRESUME-URL: %s\nROLLBACK-URL: %s\n\n\n\n", client.getBaseUrl(), module.promoteUrl(), module.resumeUrl(), module.rollbackUrl());
    source = new HostedRepository("source");
    client.stores().create(source, changelog, HostedRepository.class);
    client.content().store(source.getKey().getType(), source.getName(), first, new ByteArrayInputStream("This is a test".getBytes()));
    client.content().store(source.getKey().getType(), source.getName(), second, new ByteArrayInputStream("This is a test".getBytes()));
    target = createTarget(changelog);
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) IndyPromoteClientModule(org.commonjava.indy.promote.client.IndyPromoteClientModule) HostedRepository(org.commonjava.indy.model.core.HostedRepository) Before(org.junit.Before)

Aggregations

ByteArrayInputStream (java.io.ByteArrayInputStream)1 HostedRepository (org.commonjava.indy.model.core.HostedRepository)1 IndyPromoteClientModule (org.commonjava.indy.promote.client.IndyPromoteClientModule)1 Before (org.junit.Before)1