Search in sources :

Example 1 with JaegerTracing

use of io.strimzi.api.kafka.model.tracing.JaegerTracing in project strimzi by strimzi.

the class KafkaBridgeClusterTest method testTracingConfiguration.

@ParallelTest
public void testTracingConfiguration() {
    KafkaBridge resource = new KafkaBridgeBuilder(this.resource).editSpec().withJaegerTracing(new JaegerTracing()).endSpec().build();
    KafkaBridgeCluster kb = KafkaBridgeCluster.fromCrd(Reconciliation.DUMMY_RECONCILIATION, resource, VERSIONS);
    Deployment deployment = kb.generateDeployment(new HashMap<>(), true, null, null);
    Container container = deployment.getSpec().getTemplate().getSpec().getContainers().get(0);
    assertThat(AbstractModel.containerEnvVars(container).get(KafkaBridgeCluster.ENV_VAR_STRIMZI_TRACING), is("jaeger"));
}
Also used : Container(io.fabric8.kubernetes.api.model.Container) KafkaBridge(io.strimzi.api.kafka.model.KafkaBridge) KafkaBridgeBuilder(io.strimzi.api.kafka.model.KafkaBridgeBuilder) JaegerTracing(io.strimzi.api.kafka.model.tracing.JaegerTracing) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment) ParallelTest(io.strimzi.test.annotations.ParallelTest)

Example 2 with JaegerTracing

use of io.strimzi.api.kafka.model.tracing.JaegerTracing in project strimzi-kafka-operator by strimzi.

the class KafkaBridgeClusterTest method testTracingConfiguration.

@ParallelTest
public void testTracingConfiguration() {
    KafkaBridge resource = new KafkaBridgeBuilder(this.resource).editSpec().withJaegerTracing(new JaegerTracing()).endSpec().build();
    KafkaBridgeCluster kb = KafkaBridgeCluster.fromCrd(Reconciliation.DUMMY_RECONCILIATION, resource, VERSIONS);
    Deployment deployment = kb.generateDeployment(new HashMap<>(), true, null, null);
    Container container = deployment.getSpec().getTemplate().getSpec().getContainers().get(0);
    assertThat(AbstractModel.containerEnvVars(container).get(KafkaBridgeCluster.ENV_VAR_STRIMZI_TRACING), is("jaeger"));
}
Also used : Container(io.fabric8.kubernetes.api.model.Container) KafkaBridge(io.strimzi.api.kafka.model.KafkaBridge) KafkaBridgeBuilder(io.strimzi.api.kafka.model.KafkaBridgeBuilder) JaegerTracing(io.strimzi.api.kafka.model.tracing.JaegerTracing) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment) ParallelTest(io.strimzi.test.annotations.ParallelTest)

Aggregations

Container (io.fabric8.kubernetes.api.model.Container)2 Deployment (io.fabric8.kubernetes.api.model.apps.Deployment)2 KafkaBridge (io.strimzi.api.kafka.model.KafkaBridge)2 KafkaBridgeBuilder (io.strimzi.api.kafka.model.KafkaBridgeBuilder)2 JaegerTracing (io.strimzi.api.kafka.model.tracing.JaegerTracing)2 ParallelTest (io.strimzi.test.annotations.ParallelTest)2