Merge "Limit scheduler count to 1 for Elasticsearch connection tests"

This commit is contained in:
Zuul 2021-11-30 21:01:42 +00:00 committed by Gerrit Code Review
commit 9625daf4d3
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)