Skip to content

Commit

Permalink
Add protobuf native integration tests for apicurio serdes support
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Jan 31, 2024
1 parent 43ebc1d commit 5c24e10
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package io.quarkus.it.kafka;

import io.apicurio.registry.rest.client.RegistryClientFactory;
import io.apicurio.rest.client.VertxHttpClientProvider;
import io.quarkus.it.kafka.protobuf.ProtobufKafkaCreator;
import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.vertx.core.Vertx;
import org.junit.jupiter.api.BeforeAll;

@QuarkusIntegrationTest
@QuarkusTestResource(value = KafkaResource.class, restrictToAnnotatedClass = true)
public class KafkaProtobufTestIT extends KafkaProtobufTestBase {

ProtobufKafkaCreator creator;

@Override
ProtobufKafkaCreator creator() {
return creator;
}

@BeforeAll
public static void setUp() {
// this is for the test JVM, which also uses Kafka client, which in turn also interacts with the registry
RegistryClientFactory.setProvider(new VertxHttpClientProvider(Vertx.vertx()));
}

}

0 comments on commit 5c24e10

Please sign in to comment.