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"));
}
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"));
}
Aggregations