use of io.strimzi.api.kafka.model.KafkaClusterSpecBuilder in project strimzi by strimzi.
the class KRaftUtilsTest method testJbodStorageWithMultipleDisks.
@ParallelTest
public void testJbodStorageWithMultipleDisks() {
Set<String> errors = new HashSet<>(0);
KafkaClusterSpec kcs = new KafkaClusterSpecBuilder().withNewJbodStorage().withVolumes(new PersistentClaimStorageBuilder().withId(0).withSize("100Gi").build(), new PersistentClaimStorageBuilder().withId(1).withSize("100Gi").build()).endJbodStorage().build();
KRaftUtils.validateKafkaSpec(errors, kcs);
assertThat(errors, is(Set.of("Using more than one disk in a JBOD storage is currently not supported when the UseKRaft feature gate is enabled")));
}
use of io.strimzi.api.kafka.model.KafkaClusterSpecBuilder in project strimzi by strimzi.
the class KRaftUtilsTest method testJbodStorageWithOneDisk.
@ParallelTest
public void testJbodStorageWithOneDisk() {
Set<String> errors = new HashSet<>(0);
KafkaClusterSpec kcs = new KafkaClusterSpecBuilder().withNewJbodStorage().withVolumes(new PersistentClaimStorageBuilder().withId(0).withSize("100Gi").build()).endJbodStorage().build();
KRaftUtils.validateKafkaSpec(errors, kcs);
assertThat(errors, is(Set.of()));
}
use of io.strimzi.api.kafka.model.KafkaClusterSpecBuilder in project strimzi by strimzi.
the class KRaftUtilsTest method testKafkaScramSha512Listener.
@ParallelTest
public void testKafkaScramSha512Listener() {
Set<String> errors = new HashSet<>(0);
KafkaClusterSpec kcs = new KafkaClusterSpecBuilder().withListeners(new GenericKafkaListenerBuilder().withName("listener").withPort(9092).withTls(true).withType(KafkaListenerType.INTERNAL).withNewKafkaListenerAuthenticationScramSha512Auth().endKafkaListenerAuthenticationScramSha512Auth().build()).build();
KRaftUtils.validateKafkaSpec(errors, kcs);
assertThat(errors, is(Set.of("Authentication of type 'scram-sha-512` is currently not supported when the UseKRaft feature gate is enabled")));
}
use of io.strimzi.api.kafka.model.KafkaClusterSpecBuilder in project strimzi-kafka-operator by strimzi.
the class KRaftUtilsTest method testKafkaScramSha512Listener.
@ParallelTest
public void testKafkaScramSha512Listener() {
Set<String> errors = new HashSet<>(0);
KafkaClusterSpec kcs = new KafkaClusterSpecBuilder().withListeners(new GenericKafkaListenerBuilder().withName("listener").withPort(9092).withTls(true).withType(KafkaListenerType.INTERNAL).withNewKafkaListenerAuthenticationScramSha512Auth().endKafkaListenerAuthenticationScramSha512Auth().build()).build();
KRaftUtils.validateKafkaSpec(errors, kcs);
assertThat(errors, is(Set.of("Authentication of type 'scram-sha-512` is currently not supported when the UseKRaft feature gate is enabled")));
}
use of io.strimzi.api.kafka.model.KafkaClusterSpecBuilder in project strimzi-kafka-operator by strimzi.
the class KRaftUtilsTest method testJbodStorageWithMultipleDisks.
@ParallelTest
public void testJbodStorageWithMultipleDisks() {
Set<String> errors = new HashSet<>(0);
KafkaClusterSpec kcs = new KafkaClusterSpecBuilder().withNewJbodStorage().withVolumes(new PersistentClaimStorageBuilder().withId(0).withSize("100Gi").build(), new PersistentClaimStorageBuilder().withId(1).withSize("100Gi").build()).endJbodStorage().build();
KRaftUtils.validateKafkaSpec(errors, kcs);
assertThat(errors, is(Set.of("Using more than one disk in a JBOD storage is currently not supported when the UseKRaft feature gate is enabled")));
}
Aggregations