Package io.debezium.server.pubsub
Class PubSubLiteIT
java.lang.Object
io.debezium.server.pubsub.PubSubLiteIT
@QuarkusTestResource(io.debezium.testing.testcontainers.PostgresTestResourceLifecycleManager.class)
@EnabledIfSystemProperty(named="debezium.sink.type",
matches="pubsublite")
public class PubSubLiteIT
extends Object
Integration test that verifies basic reading from PostgreSQL database and writing to a Google Cloud PubSub Lite stream.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final List<com.google.pubsub.v1.PubsubMessage>private static final String(package private) DebeziumServerprivate static final Stringprotected static com.google.cloud.pubsublite.cloudpubsub.Subscriberprivate static final Stringprivate static final com.google.cloud.pubsublite.SubscriptionPathprivate static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidconnectorCompleted(io.debezium.server.events.ConnectorCompletedEvent event) (package private) voidsetupDependencies(io.debezium.server.events.ConnectorStartedEvent event) (package private) static voidstop()void
-
Field Details
-
MESSAGE_COUNT
private static final int MESSAGE_COUNT- See Also:
-
STREAM_NAME
- See Also:
-
SUBSCRIPTION_NAME
- See Also:
-
cloudRegion
- See Also:
-
zoneId
private static final char zoneId- See Also:
-
subscriber
protected static com.google.cloud.pubsublite.cloudpubsub.Subscriber subscriber -
projectId
-
subscriptionPath
private static final com.google.cloud.pubsublite.SubscriptionPath subscriptionPath -
server
-
messages
-
-
Constructor Details
-
PubSubLiteIT
public PubSubLiteIT()
-
-
Method Details
-
stop
- 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
-
testPubSubLite
@Test public void testPubSubLite()
-