Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2992

Test adjacent system failure using a configurable proxy

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0-alpha2, 3.1.0
    • Component/s: backend
    • Labels:
      None
    • PM Priority:
      110

      Description

      Context:
      As a measure agreed on in the Backend Senate November meeting we want to introduce the usage of a mockable proxy in the context of our integration tests.

      This proxy should sit in front any adjacent system included in the integration tests (elastic & cambpm) and we want to use it to simulate failure response or even connectivity errors.

      AT:

      • a proxy is setup and configurable using a junit extension in the context of Integration tests
      • tests are added for relevant scenarios:
        • user role cleanup should not run if a user sync failed
        • import should be resilient to failing fetch requests from the cambpm rest api
        • import should be resilient to failing elasticsearch index bulks
        • errors on copy/deleting a resource tree (collection, report) should not end up in a inconsistent state (e.g. it is acceptable that during a collection copy we fail on a report copy and an incomplete collection copy is created, so the user can just delete that copy themselves BUT it would not be acceptable if orphaned entities are left over, e.g. if reports would be copied first and the collection creation fails)
      • once the proxy is set up add a test scenario that Optimize can cope Elasticsearch crashing on runtime

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                sebastian.bathke Sebastian Bathke
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: