Limit scheduler count to 1 for other github related tests
Those tests are also using the fake github implementation which means that every scheduler gets a different fake github instance. Thus, assertions might fail depending on which scheduler did the interaction with Github. Change-Id: I4234a58fe15ce4e1cfbeb935fd18c635db0d8a9b
This commit is contained in:
parent
e009ea443a
commit
010167a792
@ -20,6 +20,12 @@ class TestGerritAndGithub(ZuulTestCase):
|
|||||||
config_file = 'zuul-connections-gerrit-and-github.conf'
|
config_file = 'zuul-connections-gerrit-and-github.conf'
|
||||||
tenant_config_file = 'config/multi-driver/main.yaml'
|
tenant_config_file = 'config/multi-driver/main.yaml'
|
||||||
|
|
||||||
|
# Those tests are also using the fake github implementation which
|
||||||
|
# means that every scheduler gets a different fake github instance.
|
||||||
|
# Thus, assertions might fail depending on which scheduler did the
|
||||||
|
# interaction with Github.
|
||||||
|
scheduler_count = 1
|
||||||
|
|
||||||
def test_multiple_project_gerrit_and_github(self):
|
def test_multiple_project_gerrit_and_github(self):
|
||||||
self.executor_server.hold_jobs_in_build = True
|
self.executor_server.hold_jobs_in_build = True
|
||||||
|
|
||||||
|
@ -973,6 +973,12 @@ class TestGithubToPagureCRD(ZuulTestCase):
|
|||||||
config_file = 'zuul-crd-pagure.conf'
|
config_file = 'zuul-crd-pagure.conf'
|
||||||
tenant_config_file = 'config/cross-source-pagure/github.yaml'
|
tenant_config_file = 'config/cross-source-pagure/github.yaml'
|
||||||
|
|
||||||
|
# Those tests are also using the fake github implementation which
|
||||||
|
# means that every scheduler gets a different fake github instance.
|
||||||
|
# Thus, assertions might fail depending on which scheduler did the
|
||||||
|
# interaction with Github.
|
||||||
|
scheduler_count = 1
|
||||||
|
|
||||||
def test_crd_gate(self):
|
def test_crd_gate(self):
|
||||||
"Test cross-repo dependencies"
|
"Test cross-repo dependencies"
|
||||||
A = self.fake_github.openFakePullRequest('github/project1', 'master',
|
A = self.fake_github.openFakePullRequest('github/project1', 'master',
|
||||||
|
@ -3267,6 +3267,11 @@ class TestJobContamination(AnsibleZuulTestCase):
|
|||||||
|
|
||||||
config_file = 'zuul-connections-gerrit-and-github.conf'
|
config_file = 'zuul-connections-gerrit-and-github.conf'
|
||||||
tenant_config_file = 'config/zuul-job-contamination/main.yaml'
|
tenant_config_file = 'config/zuul-job-contamination/main.yaml'
|
||||||
|
# Those tests are also using the fake github implementation which
|
||||||
|
# means that every scheduler gets a different fake github instance.
|
||||||
|
# Thus, assertions might fail depending on which scheduler did the
|
||||||
|
# interaction with Github.
|
||||||
|
scheduler_count = 1
|
||||||
|
|
||||||
def test_job_contamination_playbooks(self):
|
def test_job_contamination_playbooks(self):
|
||||||
conf = textwrap.dedent(
|
conf = textwrap.dedent(
|
||||||
|
Loading…
Reference in New Issue
Block a user