Class PubSubIT

java.lang.Object
io.debezium.server.pubsub.PubSubIT

Integration test that verifies basic reading from PostgreSQL database and writing to a Google Cloud PubSub stream.
Author:
Jiri Pechanec
  • Field Details

    • MESSAGE_COUNT

      private static final int MESSAGE_COUNT
      See Also:
    • STREAM_NAME

      private static final String STREAM_NAME
      See Also:
    • SUBSCRIPTION_NAME

      private static final String SUBSCRIPTION_NAME
      See Also:
    • 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
  • Constructor Details

    • PubSubIT

      public PubSubIT()
  • Method Details

    • 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
    • testPubSub

      @Test public void testPubSub() throws Exception
      Throws:
      Exception