From: Zack Cerza Date: Tue, 14 Apr 2015 15:30:14 +0000 (-0600) Subject: Make test_gitbuilder_url() use the local config X-Git-Tag: 1.1.0~971^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2fe86477889de75123a2bd0fdc48d0b7e7fa62f2;p=teuthology.git Make test_gitbuilder_url() use the local config Signed-off-by: Zack Cerza --- diff --git a/teuthology/test/test_suite.py b/teuthology/test/test_suite.py index f292553b9..a62caa0de 100644 --- a/teuthology/test/test_suite.py +++ b/teuthology/test/test_suite.py @@ -4,6 +4,7 @@ from datetime import datetime from mock import patch, Mock from teuthology import suite +from teuthology.config import config class TestSuiteOffline(object): @@ -25,7 +26,9 @@ class TestSuiteOffline(object): assert name.startswith('USER-') def test_gitbuilder_url(self): - ref_url = "http://gitbuilder.ceph.com/ceph-deb-squeeze-x86_64-basic/" + ref_url = "http://{host}/ceph-deb-squeeze-x86_64-basic/".format( + host=config.gitbuilder_host + ) assert suite.get_gitbuilder_url('ceph', 'squeeze', 'deb', 'x86_64', 'basic') == ref_url