Skip to content

Commit 093db9d

Browse files
fix: functional project service test (#1500)
chore: fix functional project service test
1 parent f91b72a commit 093db9d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

tests/functional/api/test_projects.py

+5
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ def test_project_remote_mirrors(project):
213213

214214

215215
def test_project_services(project):
216+
# Use 'update' to create a service as we don't have a 'create' method and
217+
# to add one is somewhat complicated so it hasn't been done yet.
218+
project.services.update("asana", api_key="foo")
219+
216220
service = project.services.get("asana")
221+
assert service.active is True
217222
service.api_key = "whatever"
218223
service.save()
219224

tests/functional/fixtures/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
GITLAB_IMAGE=gitlab/gitlab-ce
2-
GITLAB_TAG=13.11.4-ce.0
2+
GITLAB_TAG=13.12.0-ce.0

tests/functional/fixtures/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ services:
1111
hostname: 'gitlab.test'
1212
privileged: true # Just in case https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/1350
1313
environment:
14+
GITLAB_ROOT_PASSWORD: 5iveL!fe
15+
GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN: registration-token
1416
GITLAB_OMNIBUS_CONFIG: |
1517
external_url 'http://gitlab.test'
16-
gitlab_rails['initial_root_password'] = '5iveL!fe'
17-
gitlab_rails['initial_shared_runners_registration_token'] = 'registration-token'
1818
registry['enable'] = false
1919
nginx['redirect_http_to_https'] = false
2020
nginx['listen_port'] = 80

0 commit comments

Comments
 (0)