diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) | |
download | gitlab-ce-a7b3560714b4d9cc4ab32dffcd1f74a284b93580.tar.gz |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md')
-rw-r--r-- | doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md b/doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md index ef3e0624395..7fb95769fc2 100644 --- a/doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md +++ b/doc/development/testing_guide/end_to_end/running_tests_that_require_special_setup.md @@ -141,6 +141,34 @@ docker stop gitlab-gitaly-cluster praefect postgres gitaly3 gitaly2 gitaly1 docker rm gitlab-gitaly-cluster praefect postgres gitaly3 gitaly2 gitaly1 ``` +## Tests that require a runner + +To execute tests that use a runner without errors, while creating the GitLab Docker instance the `--hostname` parameter in the Docker `run` command should be given a specific interface IP address or a non-loopback hostname accessible from the runner container. Having `localhost` (or `127.0.0.1`) as the GitLab hostname won't work (unless the GitLab Runner is created with the Docker network as `host`) + +Examples of tests which require a runner: + +- `qa/qa/specs/features/ee/browser_ui/13_secure/create_merge_request_with_secure_spec.rb` +- `qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb` + +Example: + +```shell +docker run \ + --detach \ + --hostname interface_ip_address \ + --publish 80:80 \ + --name gitlab \ + --restart always \ + --volume ~/ee_volume/config:/etc/gitlab \ + --volume ~/ee_volume/logs:/var/log/gitlab \ + --volume ~/ee_volume/data:/var/opt/gitlab \ + --shm-size 256m \ + gitlab/gitlab-ee:latest +``` + +Where `interface_ip_address` is your local network's interface IP, which you can find with the `ifconfig` command. +The same would apply to GDK running with the instance address as `localhost` too. + ## Guide to run and debug Monitor tests ### How to set up |