diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2020-03-21 19:01:23 -0400 |
|---|---|---|
| committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-03-21 19:12:46 -0400 |
| commit | 98d3f770c4cc7e15493380e1a2201c63f0a332a2 (patch) | |
| tree | e245f55c6d7b0928b2dc91d200c14a08fe1f739a /README.rst | |
| parent | 6e80723e5fa00e8b870ec25d1cb2484d4b5816ca (diff) | |
| download | gitlab-98d3f770c4cc7e15493380e1a2201c63f0a332a2.tar.gz | |
chore: improve and document testing against different images
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -156,6 +156,26 @@ To run these tests: # run the python API tests: ./tools/py_functional_tests.sh +By default, the tests run against the ``gitlab/gitlab-ce:latest`` image. You can +override both the image and tag with the ``-i`` and ``-t`` options, or by providing +either the ``GITLAB_IMAGE`` or ``GITLAB_TAG`` environment variables. + +This way you can run tests against different versions, such as ``nightly`` for +features in an upcoming release, or an older release (e.g. ``12.8.0-ce.0``). +The tag must match an exact tag on Docker Hub: + +.. code-block:: bash + + # run tests against `nightly` or specific tag + ./tools/py_functional_tests.sh -t nightly + ./tools/py_functional_tests.sh -t 12.8.0-ce.0 + + # run tests against the latest gitlab EE image + ./tools/py_functional_tests.sh -i gitlab/gitlab-ee + + # override tags with environment variables + GITLAB_TAG=nightly ./tools/py_functional_tests.sh + You can also build a test environment using the following command: .. code-block:: bash |
