Search in sources :

Example 1 with ActiveMQContainer

use of com.redhat.jenkins.plugins.ci.integration.fixtures.ActiveMQContainer in project jms-messaging-plugin by jenkinsci.

the class AmqMessagingPluginLockdownIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    ActiveMQContainer amq = docker.create();
    GlobalCIConfiguration gcc = GlobalCIConfiguration.get();
    gcc.setConfigs(Collections.singletonList(new ActiveMqMessagingProvider("name", createFailoverUrl(amq.getBroker()), true, "CI", null, new UsernameAuthenticationMethod("admin", Secret.fromString("redhat")))));
    String adminUser = "admin";
    String user = "user";
    configureSecurity(adminUser, user);
// TODO test connection. WebClient? Rest?
}
Also used : ActiveMqMessagingProvider(com.redhat.jenkins.plugins.ci.messaging.ActiveMqMessagingProvider) ActiveMQContainer(com.redhat.jenkins.plugins.ci.integration.fixtures.ActiveMQContainer) UsernameAuthenticationMethod(com.redhat.jenkins.plugins.ci.authentication.activemq.UsernameAuthenticationMethod) GlobalCIConfiguration(com.redhat.jenkins.plugins.ci.GlobalCIConfiguration) Before(org.junit.Before)

Aggregations

GlobalCIConfiguration (com.redhat.jenkins.plugins.ci.GlobalCIConfiguration)1 UsernameAuthenticationMethod (com.redhat.jenkins.plugins.ci.authentication.activemq.UsernameAuthenticationMethod)1 ActiveMQContainer (com.redhat.jenkins.plugins.ci.integration.fixtures.ActiveMQContainer)1 ActiveMqMessagingProvider (com.redhat.jenkins.plugins.ci.messaging.ActiveMqMessagingProvider)1 Before (org.junit.Before)1