use of io.strimzi.api.kafka.model.KafkaJmxOptions in project strimzi by strimzi.
the class KafkaAssemblyOperatorTest method testCreateClusterWithJmxEnabled.
@ParameterizedTest
@MethodSource("data")
public void testCreateClusterWithJmxEnabled(Params params, VertxTestContext context) {
setFields(params);
Kafka kafka = getKafkaAssembly("foo");
KafkaJmxOptions jmxOptions = new KafkaJmxOptionsBuilder().withAuthentication(new KafkaJmxAuthenticationPasswordBuilder().build()).build();
kafka.getSpec().getKafka().setJmxOptions(jmxOptions);
kafka.getSpec().getZookeeper().setJmxOptions(jmxOptions);
Secret kafkaJmxSecret = new SecretBuilder().withNewMetadata().withName(KafkaCluster.jmxSecretName("foo")).withNamespace("test").endMetadata().withData(singletonMap("foo", "bar")).build();
Secret zookeeperJmxSecret = new SecretBuilder().withNewMetadata().withName(ZookeeperCluster.jmxSecretName("foo")).withNamespace("test").endMetadata().withData(singletonMap("foo", "bar")).build();
createCluster(context, kafka, List.of(kafkaJmxSecret, zookeeperJmxSecret));
// getInitialCertificates(getKafkaAssembly("foo").getMetadata().getName()));
}
use of io.strimzi.api.kafka.model.KafkaJmxOptions in project strimzi by strimzi.
the class KafkaAssemblyOperatorTest method testUpdateClusterAuthenticationTrue.
@ParameterizedTest
@MethodSource("data")
public void testUpdateClusterAuthenticationTrue(Params params, VertxTestContext context) {
setFields(params);
Kafka kafkaAssembly = getKafkaAssembly("bar");
KafkaJmxOptions kafkaJmxOptions = new KafkaJmxOptionsBuilder().withAuthentication(new KafkaJmxAuthenticationPasswordBuilder().build()).build();
kafkaAssembly.getSpec().getKafka().setJmxOptions(kafkaJmxOptions);
kafkaAssembly.getSpec().getZookeeper().setJmxOptions(kafkaJmxOptions);
updateCluster(context, getKafkaAssembly("bar"), kafkaAssembly);
}
use of io.strimzi.api.kafka.model.KafkaJmxOptions in project strimzi-kafka-operator by strimzi.
the class KafkaAssemblyOperatorTest method testUpdateClusterAuthenticationTrue.
@ParameterizedTest
@MethodSource("data")
public void testUpdateClusterAuthenticationTrue(Params params, VertxTestContext context) {
setFields(params);
Kafka kafkaAssembly = getKafkaAssembly("bar");
KafkaJmxOptions kafkaJmxOptions = new KafkaJmxOptionsBuilder().withAuthentication(new KafkaJmxAuthenticationPasswordBuilder().build()).build();
kafkaAssembly.getSpec().getKafka().setJmxOptions(kafkaJmxOptions);
kafkaAssembly.getSpec().getZookeeper().setJmxOptions(kafkaJmxOptions);
updateCluster(context, getKafkaAssembly("bar"), kafkaAssembly);
}
use of io.strimzi.api.kafka.model.KafkaJmxOptions in project strimzi-kafka-operator by strimzi.
the class KafkaAssemblyOperatorTest method testCreateClusterWithJmxEnabled.
@ParameterizedTest
@MethodSource("data")
public void testCreateClusterWithJmxEnabled(Params params, VertxTestContext context) {
setFields(params);
Kafka kafka = getKafkaAssembly("foo");
KafkaJmxOptions jmxOptions = new KafkaJmxOptionsBuilder().withAuthentication(new KafkaJmxAuthenticationPasswordBuilder().build()).build();
kafka.getSpec().getKafka().setJmxOptions(jmxOptions);
kafka.getSpec().getZookeeper().setJmxOptions(jmxOptions);
Secret kafkaJmxSecret = new SecretBuilder().withNewMetadata().withName(KafkaCluster.jmxSecretName("foo")).withNamespace("test").endMetadata().withData(singletonMap("foo", "bar")).build();
Secret zookeeperJmxSecret = new SecretBuilder().withNewMetadata().withName(ZookeeperCluster.jmxSecretName("foo")).withNamespace("test").endMetadata().withData(singletonMap("foo", "bar")).build();
createCluster(context, kafka, List.of(kafkaJmxSecret, zookeeperJmxSecret));
// getInitialCertificates(getKafkaAssembly("foo").getMetadata().getName()));
}
Aggregations