Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-6363

Migrate Debezium UI MongoDB to MongoDbReplicaSet from core

XMLWordPrintable

    • False
    • None
    • False

      As part of DBZ-6173 the tests for MongoDB in UI backed were migrated to our MongoDbContainer from debezim-testing-testcontainers module.

      However..

      1)
      MongoDbContainer is not meant to be run outside of RS for which MongoDbReplicaSet exits

      2)
      The initial Migration of MongoDbContainer was done based on the premise that there are major incompatibilities with the originally used wrapper around official image. This is true only partially – there were indeed issues with compatibility with newer versions of MongoDB, however these were easy to fix.

      The main issue is that the tests originally exploited the existence of (now removed) mongodb.members.auto.discover property which despite it's name didn't actually just took the the first configured hostname and use that for any configuration (despite it not actually matching the replicaset configuration). The goal of this PR is to fix these issues in similar fashion as was done in MongoDB connector module.

      Note: the main problem here is that the RS deployment needs to be reachable both internally within the Docker network and externally from host system by running tests.

            anmohant Anisha Mohanty
            jcechace@redhat.com Jakub Čecháček
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: