Search in sources :

Example 6 with KafkaCluster

use of org.bf2.operator.operands.KafkaCluster in project kas-fleetshard by bf2fc6cc711aee1a0c2a.

the class KafkaInstanceTest method deleteOrderCanaryDeleteBeforeKafkaCluster.

@Test
void deleteOrderCanaryDeleteBeforeKafkaCluster() {
    Context<ManagedKafka> context = Mockito.mock(Context.class);
    kafkaInstance.delete(DUMMY_MANAGED_KAFKA, context);
    InOrder inOrder = inOrder(canary, kafkaCluster);
    inOrder.verify(canary).delete(DUMMY_MANAGED_KAFKA, context);
    inOrder.verify(kafkaCluster).delete(DUMMY_MANAGED_KAFKA, context);
}
Also used : ManagedKafka(org.bf2.operator.resources.v1alpha1.ManagedKafka) InOrder(org.mockito.InOrder) QuarkusTest(io.quarkus.test.junit.QuarkusTest) Test(org.junit.jupiter.api.Test)

Aggregations

ManagedKafka (org.bf2.operator.resources.v1alpha1.ManagedKafka)4 QuarkusTest (io.quarkus.test.junit.QuarkusTest)2 Kafka (io.strimzi.api.kafka.model.Kafka)2 LongSummaryStatistics (java.util.LongSummaryStatistics)2 LabelSelector (io.fabric8.kubernetes.api.model.LabelSelector)1 Pod (io.fabric8.kubernetes.api.model.Pod)1 Quantity (io.fabric8.kubernetes.api.model.Quantity)1 NetworkPolicyPeerBuilder (io.fabric8.kubernetes.api.model.networking.v1.NetworkPolicyPeerBuilder)1 KubernetesClient (io.fabric8.kubernetes.client.KubernetesClient)1 KubernetesClientException (io.fabric8.kubernetes.client.KubernetesClientException)1 OpenShiftClient (io.fabric8.openshift.client.OpenShiftClient)1 Context (io.javaoperatorsdk.operator.api.Context)1 CertAndKeySecretSource (io.strimzi.api.kafka.model.CertAndKeySecretSource)1 CertAndKeySecretSourceBuilder (io.strimzi.api.kafka.model.CertAndKeySecretSourceBuilder)1 CertSecretSource (io.strimzi.api.kafka.model.CertSecretSource)1 CertSecretSourceBuilder (io.strimzi.api.kafka.model.CertSecretSourceBuilder)1 GenericSecretSource (io.strimzi.api.kafka.model.GenericSecretSource)1 GenericSecretSourceBuilder (io.strimzi.api.kafka.model.GenericSecretSourceBuilder)1 KafkaListenerAuthentication (io.strimzi.api.kafka.model.listener.KafkaListenerAuthentication)1 KafkaListenerAuthenticationOAuthBuilder (io.strimzi.api.kafka.model.listener.KafkaListenerAuthenticationOAuthBuilder)1