Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2992 Test adjacent system failure using a configurable proxy
  3. OPT-3176

Create JUnit5 extension for configuring proxy and forwarding requests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: L3 - Default L3 - Default
    • 3.0.0
    • 3.0.0
    • backend
    • None

      We should register a test extension that returns the MockServerClient to test classes for two reasons. Firstly, the test extension can be used to setup forwarding criteria via expectations: http://www.mock-server.com/mock_server/creating_expectations.html#button_forward_exactly. Secondly, the extension should return the MockServerClient so that the tests themselves can make expectations and verifications against the server themselves.

      Alternatively, the Mockserver could belong to and be accessed by the existing engine and elasticsearch extensions.

      ATs:

      • All requests to ES and Engine instances during tests are routed through the Mockserver. Rather than configuring port forwarding on startup, this might make more sense to do in Java based on request matches: http://www.mock-server.com/mock_server/creating_expectations.html#button_forward_exactly
      • tests can access the MockServer Client to make verifications and assertions
      • tests with multiple engines forward requests correctly
      • After each test, existing expectations are removed and forwarding is reset

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              joshua.windels Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: