Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13823

In Quarkus Extension, camunda-h2-dbs folder is created when running the tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • quarkus
    • None

      Problem

      The tests ChooseDefaultDatasourceConfigurationTest and DefaultDatasourceConfigurationTest ensure that the right jdbc URL is configured by default. Since the default is an H2 database with on-disk persistence, a folder camunda-h2-dbs is created relative to the tests. Meaning when running mvn clean install, in quarkus-extension, the database folder is created. The file created inside this folder can be mistakenly committed.

      Solution ideas

      1. Currently, there only exist integration tests for Quarkus; all tests could be refactored into real unit tests, and the aforementioned tests are moved into a integration-test folder.
      2. The tests are being removed with the downside, that we would not discover when something is changed with the jdbc URL
      3. The tests are not run with the default maven profile; instead, they are assigned to a separate profile and executed with a separate stage
      4. The jdbc URL is overridden in the test sources; this has the downside, that if quarkus.datasource.jdbc.url is changed or removed in the future by mistake we won't be notified

      Hints (Optional):

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              tassilo.weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: