1. Sling
  2. SLING-2368

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


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


      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.


        Bertrand Delacretaz made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Bertrand Delacretaz made changes -
        Assignee Bertrand Delacretaz [ bdelacretaz ]
        Bertrand Delacretaz made changes -
        Assignee Bertrand Delacretaz [ bdelacretaz ]
        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 -


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


            • Created: