Package io.debezium.server.pubsub
Class PubSubIT
- java.lang.Object
-
- io.debezium.server.pubsub.PubSubIT
-
@QuarkusTestResource(io.debezium.testing.testcontainers.PostgresTestResourceLifecycleManager.class) public class PubSubIT extends Object
Integration test that verifies basic reading from PostgreSQL database and writing to a Google Cloud PubSub stream.- Author:
- Jiri Pechanec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classPubSubIT.TestMessageReceiver
-
Field Summary
Fields Modifier and Type Field Description private static intMESSAGE_COUNTprivate static List<com.google.pubsub.v1.PubsubMessage>messages(package private) DebeziumServerserverprivate static StringSTREAM_NAMEprotected static com.google.cloud.pubsub.v1.Subscribersubscriberprivate static StringSUBSCRIPTION_NAMEprivate static com.google.pubsub.v1.ProjectSubscriptionNamesubscriptionName
-
Constructor Summary
Constructors Constructor Description PubSubIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconnectorCompleted(io.debezium.server.events.ConnectorCompletedEvent event)(package private) voidsetupDependencies(io.debezium.server.events.ConnectorStartedEvent event)(package private) static voidstop()voidtestPubSub()
-
-
-
Field Detail
-
MESSAGE_COUNT
private static final int MESSAGE_COUNT
- See Also:
- Constant Field Values
-
STREAM_NAME
private static final String STREAM_NAME
- See Also:
- Constant Field Values
-
SUBSCRIPTION_NAME
private static final String SUBSCRIPTION_NAME
- See Also:
- Constant Field Values
-
subscriber
protected static com.google.cloud.pubsub.v1.Subscriber subscriber
-
subscriptionName
private static com.google.pubsub.v1.ProjectSubscriptionName subscriptionName
-
server
@Inject DebeziumServer server
-
messages
private static final List<com.google.pubsub.v1.PubsubMessage> messages
-
-
Method Detail
-
stop
@AfterAll static void stop() throws IOException- Throws:
IOException
-
setupDependencies
void setupDependencies(@Observes io.debezium.server.events.ConnectorStartedEvent event) throws IOException- Throws:
IOException
-
connectorCompleted
void connectorCompleted(@Observes io.debezium.server.events.ConnectorCompletedEvent event) throws Exception- Throws:
Exception
-
-