From 2c6c929f78dfda92d5ae93235bb9065d289a68cc Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sat, 3 Nov 2018 09:52:21 +0100 Subject: [PATCH] Use the pythongitlab/test-python-gitlab docker image for tests This images is updated to the latest GitLab CE. Fix the diff() test to match the change in the API output. --- tools/build_test_env.sh | 2 +- tools/python_test_v4.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh index ebfb80a07..3185f72ce 100755 --- a/tools/build_test_env.sh +++ b/tools/build_test_env.sh @@ -77,7 +77,7 @@ cleanup() { } try docker run --name gitlab-test --detach --publish 8080:80 \ - --publish 2222:22 gpocentek/test-python-gitlab:latest >/dev/null + --publish 2222:22 pythongitlab/test-python-gitlab:latest >/dev/null LOGIN='root' PASSWORD='5iveL!fe' diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 79a78bc32..133aeb3be 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -390,7 +390,7 @@ ] } admin_project.commits.create(data) -assert('---' in admin_project.commits.list()[0].diff()[0]['diff']) +assert('@@' in admin_project.commits.list()[0].diff()[0]['diff']) # commit status commit = admin_project.commits.list()[0]