Extract Engine importing in tests to AbstractIT methods

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.1.0
    • Affects Version/s: None
    • Component/s: backend
    • None
    • Not defined

      From BE Senate: https://confluence.camunda.com/display/CO/2020-05-06+The+Back-End+Senate+-+June?focusedTaskId=1

      We currently have a lot of tests that do something like the following:

      importAllEngineEntitiesFromScratch();
      refreshIndices();

      Considering the frequency of this, we should create a method that does both of these actions in the AbstractIT, so it can be reused everywhere.

      We should have a similar method that does the same for importAllEngineEntitiesFromLastIndex.

      In addition, we should try to only import from scratch in tests where we need to. In a lot of cases, importing from the last index would be sufficient. This might be out of scope.

      ATs:

      • AbstractIT has two methods declared that help with importing engine entities and refreshing ES indices. These should be used across our ITs**

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: