Limit scheduler count to 1 for Elasticsearch connection tests

These tests are storing the reported index on the fake elasticsearch
backend which is a different instance for each scheduler. Thus,
depending on which scheduler reports the item, the assertions in
these tests might pass or fail.

Change-Id: Ia5206d9c6097392ceff1abe6a911aedab22f2709
This commit is contained in:
Felix Edel 2021-11-29 08:11:41 +01:00 committed by James E. Blair
parent 010167a792
commit d780c469f5
1 changed files with 6 additions and 0 deletions

View File

@ -666,6 +666,12 @@ class TestElasticsearchConnection(AnsibleZuulTestCase):
config_file = 'zuul-elastic-driver.conf'
tenant_config_file = 'config/elasticsearch-driver/main.yaml'
# These tests are storing the reported index on the fake
# elasticsearch backend which is a different instance for each
# scheduler. Thus, depending on which scheduler reports the
# item, the assertions in these test might pass or fail.
scheduler_count = 1
def _getSecrets(self, job, pbtype):
secrets = []
build = self.getJobFromHistory(job)