use of io.strimzi.test.container.StrimziKafkaCluster in project strimzi-kafka-operator by strimzi.
the class KafkaConnectApiTest method before.
@BeforeAll
public static void before() throws IOException {
vertx = Vertx.vertx();
final Map<String, String> kafkaClusterConfiguration = new HashMap<>();
kafkaClusterConfiguration.put("zookeeper.connect", "zookeeper:2181");
cluster = new StrimziKafkaCluster(3, 1, kafkaClusterConfiguration);
cluster.start();
}
use of io.strimzi.test.container.StrimziKafkaCluster in project strimzi by strimzi.
the class TopicOperatorIT method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
kafkaCluster = new StrimziKafkaCluster(numKafkaBrokers(), numKafkaBrokers(), kafkaClusterConfig());
kafkaCluster.start();
setupKubeCluster();
setup(kafkaCluster);
LOGGER.info("Using namespace {}", NAMESPACE);
startTopicOperator(kafkaCluster);
}
use of io.strimzi.test.container.StrimziKafkaCluster in project strimzi by strimzi.
the class TopicStoreUpgradeTest method before.
@BeforeAll
public static void before() throws Exception {
vertx = Vertx.vertx();
Map<String, String> config = new HashMap<>();
config.put("zookeeper.connect", "zookeeper:2181");
cluster = new StrimziKafkaCluster(1, 1, config);
cluster.start();
MANDATORY_CONFIG.put(Config.KAFKA_BOOTSTRAP_SERVERS.key, cluster.getBootstrapServers());
MANDATORY_CONFIG.put(Config.ZOOKEEPER_CONNECT.key, cluster.getZookeeper().getHost() + ":" + cluster.getZookeeper().getFirstMappedPort());
ZkClient zkc = new ZkClient(cluster.getZookeeper().getHost() + ":" + cluster.getZookeeper().getFirstMappedPort());
try {
zkc.create("/strimzi", null, CreateMode.PERSISTENT);
zkc.create("/strimzi/topics", null, CreateMode.PERSISTENT);
} finally {
zkc.close();
}
}
use of io.strimzi.test.container.StrimziKafkaCluster in project strimzi by strimzi.
the class TopicOperatorTopicDeletionDisabledIT method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
kafkaCluster = new StrimziKafkaCluster(numKafkaBrokers(), numKafkaBrokers(), kafkaClusterConfig());
kafkaCluster.start();
setupKubeCluster();
setup(kafkaCluster);
startTopicOperator(kafkaCluster);
}
use of io.strimzi.test.container.StrimziKafkaCluster in project strimzi by strimzi.
the class KafkaConnectorIT method before.
@BeforeAll
public static void before() throws IOException {
vertx = Vertx.vertx(new VertxOptions().setMetricsOptions(new MicrometerMetricsOptions().setPrometheusOptions(new VertxPrometheusOptions().setEnabled(true)).setEnabled(true)));
final Map<String, String> kafkaClusterConfiguration = new HashMap<>();
kafkaClusterConfiguration.put("zookeeper.connect", "zookeeper:2181");
cluster = new StrimziKafkaCluster(3, 1, kafkaClusterConfiguration);
cluster.start();
}
Aggregations