use of io.pravega.test.integration.demo.ControllerWrapper in project pravega by pravega.
the class EndToEndTruncationTest method setUp.
@Before
public void setUp() throws Exception {
executor = Executors.newSingleThreadScheduledExecutor();
zkTestServer = new TestingServerStarter().start();
serviceBuilder = ServiceBuilder.newInMemoryBuilder(ServiceBuilderConfig.getDefaultConfig());
serviceBuilder.initialize();
StreamSegmentStore store = serviceBuilder.createStreamSegmentService();
server = new PravegaConnectionListener(false, servicePort, store);
server.startListening();
controllerWrapper = new ControllerWrapper(zkTestServer.getConnectString(), false, controllerPort, serviceHost, servicePort, containerCount);
controllerWrapper.awaitRunning();
}
use of io.pravega.test.integration.demo.ControllerWrapper in project pravega by pravega.
the class EndToEndWithScaleTest method setUp.
@Before
public void setUp() throws Exception {
executor = Executors.newSingleThreadScheduledExecutor();
zkTestServer = new TestingServerStarter().start();
serviceBuilder = ServiceBuilder.newInMemoryBuilder(ServiceBuilderConfig.getDefaultConfig());
serviceBuilder.initialize();
StreamSegmentStore store = serviceBuilder.createStreamSegmentService();
server = new PravegaConnectionListener(false, servicePort, store);
server.startListening();
controllerWrapper = new ControllerWrapper(zkTestServer.getConnectString(), false, controllerPort, serviceHost, servicePort, containerCount);
controllerWrapper.awaitRunning();
}
use of io.pravega.test.integration.demo.ControllerWrapper in project pravega by pravega.
the class BatchClientTest method setUp.
@Before
public void setUp() throws Exception {
executor = Executors.newSingleThreadScheduledExecutor();
zkTestServer = new TestingServerStarter().start();
serviceBuilder = ServiceBuilder.newInMemoryBuilder(ServiceBuilderConfig.getDefaultConfig());
serviceBuilder.initialize();
StreamSegmentStore store = serviceBuilder.createStreamSegmentService();
server = new PravegaConnectionListener(false, servicePort, store);
server.startListening();
controllerWrapper = new ControllerWrapper(zkTestServer.getConnectString(), false, controllerPort, serviceHost, servicePort, containerCount);
controllerWrapper.awaitRunning();
serializer = new JavaSerializer<>();
}
use of io.pravega.test.integration.demo.ControllerWrapper in project pravega by pravega.
the class ControllerBootstrapTest method setup.
@Before
public void setup() {
final String serviceHost = "localhost";
final int containerCount = 4;
// 1. Start ZK
try {
zkTestServer = new TestingServerStarter().start();
} catch (Exception e) {
Assert.fail("Failed starting ZK test server");
}
// 2. Start controller
try {
controllerWrapper = new ControllerWrapper(zkTestServer.getConnectString(), false, controllerPort, serviceHost, servicePort, containerCount);
} catch (Exception e) {
Assert.fail("Failed starting ControllerWrapper");
}
}
use of io.pravega.test.integration.demo.ControllerWrapper in project pravega by pravega.
the class ControllerFailoverTest method testSessionExpiryToleranceAllServices.
@Test(timeout = 120000)
public void testSessionExpiryToleranceAllServices() throws Exception {
final int controllerPort = TestUtils.getAvailableListenPort();
final String serviceHost = "localhost";
final int containerCount = 4;
final ControllerWrapper controllerWrapper = new ControllerWrapper(zkTestServer.getConnectString(), false, false, controllerPort, serviceHost, servicePort, containerCount, TestUtils.getAvailableListenPort());
testSessionExpiryTolerance(controllerWrapper, controllerPort);
}
Aggregations