@@ -166,7 +166,7 @@ You need to install ``tox`` to run unit tests and documentation builds locally:
166
166
Running integration tests
167
167
-------------------------
168
168
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
170
170
container. You need to have docker installed on the test machine, and your user
171
171
must have the correct permissions to talk to the docker daemon.
172
172
@@ -180,9 +180,9 @@ To run these tests:
180
180
# run the python API tests:
181
181
tox -e py_func_v4
182
182
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.
186
186
187
187
This way you can run tests against different versions, such as ``nightly `` for
188
188
features 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:
191
191
.. code-block :: bash
192
192
193
193
# 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
196
196
197
197
# 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
208
199
209
200
A freshly configured gitlab container will be available at
210
201
http://localhost:8080 (login ``root `` / password ``5iveL!fe ``). A configuration
0 commit comments