Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-7924

Speed up cross-dc tests

    XMLWordPrintable

    Details

    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Cross-DC tests restart containers after every tests because the expected initial state is that exactly the first server node in first DC is started (and no other).

      Introduce class- and method-level @InitialDcState annotation with attributes authServers and cacheServers, each taking at least these values and update starting servers accordingly:

      • FIRST_NODE_IN_FIRST_DC
      • FIRST_NODE_IN_EVERY_DC
      • ALL_NODES_IN_EVERY_DC
        The servers (managed by testsuite) would be started and stopped before a test to prepare the environment accordingly. It would be possible to override class-level default in individual methods.

      Note that for cache servers, in the current setup with a single cache server the FIRST_NODE_IN_EVERY_DC would be the same as ALL_NODES_IN_EVERY_DC

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vramik Vlastislav Ramik
                  Reporter:
                  hmlnarik Hynek Mlnařík
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: