diff options
author | John L. Villalovos <john@sodarock.com> | 2022-02-05 11:13:31 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-02-05 12:33:37 -0800 |
commit | 5b7d00df466c0fe894bafeb720bf94ffc8cd38fd (patch) | |
tree | 7f3d31db679b4739867ec7e60a44ecc0116017a0 /tests/functional/api/test_projects.py | |
parent | 5e1969431294bdb11b37b12c2b2ca3f20466389e (diff) | |
download | gitlab-5b7d00df466c0fe894bafeb720bf94ffc8cd38fd.tar.gz |
test(functional): fix GitLab configuration to support pagination
When pagination occurs python-gitlab uses the URL provided by the
GitLab server to use for the next request.
We had previously set the GitLab server configuraiton to say its URL
was `http://gitlab.test` which is not in DNS. Set the hostname
in the URL to `http://127.0.0.1:8080` which is the correct URL for the
GitLab server to be accessed while doing functional tests.
Closes: #1877
Diffstat (limited to 'tests/functional/api/test_projects.py')
-rw-r--r-- | tests/functional/api/test_projects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/api/test_projects.py b/tests/functional/api/test_projects.py index a66e368..8f8abbe 100644 --- a/tests/functional/api/test_projects.py +++ b/tests/functional/api/test_projects.py @@ -244,7 +244,7 @@ def test_project_protected_branches(project): def test_project_remote_mirrors(project): - mirror_url = "http://gitlab.test/root/mirror.git" + mirror_url = "https://gitlab.example.com/root/mirror.git" mirror = project.remote_mirrors.create({"url": mirror_url}) assert mirror.url == mirror_url |