Sling
  1. Sling
  2. SLING-2368

ServerSetup utility - more flexible way of setting up the server-side of integration tests

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Description

      I need a more flexible way of setting up Sling-based servers for integration testing, that allows the various phases of the server setup (start runnable jar, wait for it to be ready, install additional bundles, create test content etc) to be selectively run or ignored.

      This is useful when such server setups are slow, for example when testing upgrades from one Sling-based system to another, which means starting an old version, setting up some content on it, stopping it, starting the new version, running tests on it to check that the test content was preserved or suitably adapted, etc.

      Being able to selectively disable setup tasks allows for restarting tests from saved states, which is often much faster than redoing the whole setup when debugging the resulting system or its tests.

      I'll create the corresponding utilities under testing/tools and use them in testing/samples as an example.

        Activity

        Gavin made changes -
        Workflow re-open possible,doc-test-required [ 12790148 ] no-reopen-closed,doc-test-required [ 12792516 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12766478 ] re-open possible,doc-test-required [ 12790148 ]
        Bertrand Delacretaz made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Gavin made changes -
        Workflow Copy of no-reopen-closed,doc-test-required [ 12762576 ] no-reopen-closed,doc-test-required [ 12766478 ]
        Gavin made changes -
        Field Original Value New Value
        Workflow no-reopen-closed,doc-test-required [ 12649093 ] Copy of no-reopen-closed,doc-test-required [ 12762576 ]
        Bertrand Delacretaz created issue -

          People

          • Assignee:
            Bertrand Delacretaz
            Reporter:
            Bertrand Delacretaz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development