summaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorJohn Villalovos <john@sodarock.com>2021-06-09 12:20:24 -0700
committerGitHub <noreply@github.com>2021-06-09 21:20:24 +0200
commit093db9d129e0a113995501755ab57a04e461c745 (patch)
treea5437f66cd84e2d1c4e9e70882512e6c28082033 /tests/functional
parentf91b72acdf3b27b6ad398e94f6934b25aca282c7 (diff)
downloadgitlab-093db9d129e0a113995501755ab57a04e461c745.tar.gz
fix: functional project service test (#1500)
chore: fix functional project service test
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/api/test_projects.py5
-rw-r--r--tests/functional/fixtures/.env2
-rw-r--r--tests/functional/fixtures/docker-compose.yml4
3 files changed, 8 insertions, 3 deletions
diff --git a/tests/functional/api/test_projects.py b/tests/functional/api/test_projects.py
index 0823c00..c10c8ad 100644
--- a/tests/functional/api/test_projects.py
+++ b/tests/functional/api/test_projects.py
@@ -213,7 +213,12 @@ def test_project_remote_mirrors(project):
def test_project_services(project):
+ # Use 'update' to create a service as we don't have a 'create' method and
+ # to add one is somewhat complicated so it hasn't been done yet.
+ project.services.update("asana", api_key="foo")
+
service = project.services.get("asana")
+ assert service.active is True
service.api_key = "whatever"
service.save()
diff --git a/tests/functional/fixtures/.env b/tests/functional/fixtures/.env
index eacfb28..d57c43c 100644
--- a/tests/functional/fixtures/.env
+++ b/tests/functional/fixtures/.env
@@ -1,2 +1,2 @@
GITLAB_IMAGE=gitlab/gitlab-ce
-GITLAB_TAG=13.11.4-ce.0
+GITLAB_TAG=13.12.0-ce.0
diff --git a/tests/functional/fixtures/docker-compose.yml b/tests/functional/fixtures/docker-compose.yml
index a0794d6..134f266 100644
--- a/tests/functional/fixtures/docker-compose.yml
+++ b/tests/functional/fixtures/docker-compose.yml
@@ -11,10 +11,10 @@ services:
hostname: 'gitlab.test'
privileged: true # Just in case https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/1350
environment:
+ GITLAB_ROOT_PASSWORD: 5iveL!fe
+ GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN: registration-token
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.test'
- gitlab_rails['initial_root_password'] = '5iveL!fe'
- gitlab_rails['initial_shared_runners_registration_token'] = 'registration-token'
registry['enable'] = false
nginx['redirect_http_to_https'] = false
nginx['listen_port'] = 80