Child pages
  • Pillar Acceptance test

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Download the test deployment script tar.gz. Either through the browser or use curl:

    Code Block
    curl -sS -L "" -o bitrepository-reference-pillar.tar.gz

  2. Unpack it and cd into the pillar-tests directory.

    Code Block
    > tar -xzf bitrepository-reference-pillar.tar.gz
    > cd pillar-tests

  3. Create the test structure, where the 3rd and following arguments are the names of the pillars which needs to be tested. The ${VERSION} should refers to the version of the reference code used for acceptance test

    Code Block
    deploy/ create ${VERSION} ${PILLAR1} ${PILLAR2} ...

    This will perform the following steps:

    1. The pillar test of the indicated version will be downloaded and unpacked into a download folder.
    2. The unpacked directories, minus the lib dir will be added to a new local git repository.
    3. The new directory 'mastertest' will be created based on a pull clone the download git repository. The purpose of this dir is to manage the local changes which needs to be done to the files used for configuring the tests.
    4. A test folder is created with a sub folder for each pillar test. Each pillar dir is a clone of the master test repository. Pillar specific modifications can be made to the files here.
  4. The pillar test now needs to be setup for the specific context.
    1. Setup client configuration. This means creating a conf dir in the mastertest dir containing the RepositorySettings.xmlReferenceSettings.xml and the client certificate to use in the test. This will typically be the settings used in the collection with the pillars to test. This can be automated by creation a deploy/ script, which retrieves this configurtion files. A example deploy/ is included.
    2. Update the files under testprops in the mastertest to fit your test context. Note that the default test is used to test locally started reference pillar using a locally started messagebus.
    3. Commit the mastertest changes to git

      Code Block
      git add conf/*
      git commit -m "Added Repository- and ReferenceSettings"

    4. For each pillar test 

      1. Pull the changes from mastertest:

        Code Block
        git pull

      2. Update the CollectionSettings RepositorySettings to only recognize the pillar to test, eg. the test will ognore the other pillars.
      3. Update the with the pillarID for the pillar to test.