@@ -166,7 +166,7 @@ You need to install ``tox`` to run unit tests and documentation builds locally:
166166 Running integration tests
167167-------------------------
168168
169- Two scripts run tests against a running gitlab instance, using a docker
169+ Integration tests run against a running gitlab instance, using a docker
170170container. You need to have docker installed on the test machine, and your user
171171must have the correct permissions to talk to the docker daemon.
172172
@@ -180,9 +180,9 @@ To run these tests:
180180 # run the python API tests:
181181 tox -e py_func_v4
182182
183- By default, the tests run against the ``gitlab/gitlab-ce:latest `` image. You can
184- override both the image and tag with the `` -i `` and `` -t `` options, or by providing
185- either the ``GITLAB_IMAGE `` or ``GITLAB_TAG `` environment variables.
183+ By default, the tests run against the latest version of the ``gitlab/gitlab-ce ``
184+ image. You can override both the image and tag by providing either the
185+ ``GITLAB_IMAGE `` or ``GITLAB_TAG `` environment variables.
186186
187187This way you can run tests against different versions, such as ``nightly `` for
188188features in an upcoming release, or an older release (e.g. ``12.8.0-ce.0 ``).
@@ -191,20 +191,11 @@ The tag must match an exact tag on Docker Hub:
191191.. code-block :: bash
192192
193193 # run tests against `nightly` or specific tag
194- ./tools/py_functional_tests.sh -t nightly
195- ./tools/py_functional_tests.sh -t 12.8.0-ce.0
194+ GITLAB_TAG=nightly tox -e py_func_v4
195+ GITLAB_TAG= 12.8.0-ce.0 tox -e py_func_v4
196196
197197 # run tests against the latest gitlab EE image
198- ./tools/py_functional_tests.sh -i gitlab/gitlab-ee
199-
200- # override tags with environment variables
201- GITLAB_TAG=nightly ./tools/py_functional_tests.sh
202-
203- You can also build a test environment using the following command:
204-
205- .. code-block :: bash
206-
207- ./tools/build_test_env.sh
198+ GITLAB_IMAGE=gitlab/gitlab-ee tox -e py_func_v4
208199
209200 A freshly configured gitlab container will be available at
210201http://localhost:8080 (login ``root `` / password ``5iveL!fe ``). A configuration
0 commit comments