diff options
author | Felix Edel <felix.edel@bmw.de> | 2021-07-21 14:23:43 +0200 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2021-08-06 15:40:41 -0700 |
commit | 8038f9f75cafe2a1bf5e4c9faf7544427deb7084 (patch) | |
tree | 91ed6c7255b16de6fde96f044b5f37c58608cce9 /tests/unit/test_sos.py | |
parent | 97152216b2830e8e80fad6aa3f84e97ad365c688 (diff) | |
download | zuul-8038f9f75cafe2a1bf5e4c9faf7544427deb7084.tar.gz |
Execute merge jobs via ZooKeeper
This is the second part of I767c0b4c5473b2948487c3ae5bbc612c25a2a24a.
It uses the MergerAPI.
Note: since we no longer have a central gearman server where we can
record all of the merge jobs, some tests now consult the merger api
to get the list of merge jobs which were submitted by that scheduler.
This should generally be equivalent, but something to keep in mind
as we add multiple schedulers.
Change-Id: I1c694bcdc967283f1b1a4821df7700d93240690a
Diffstat (limited to 'tests/unit/test_sos.py')
-rw-r--r-- | tests/unit/test_sos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_sos.py b/tests/unit/test_sos.py index 298509bff..bf88be3c3 100644 --- a/tests/unit/test_sos.py +++ b/tests/unit/test_sos.py @@ -58,10 +58,10 @@ class TestScaleOutScheduler(ZuulTestCase): for app in self.scheds.instances: if app is self.scheds.first: self.assertIsNotNone( - app.sched.merger.history.get("merger:cat")) + app.sched.merger.history.get("cat")) else: # Make sure the other schedulers did not issue any cat jobs - self.assertIsNone(app.sched.merger.history.get("merger:cat")) + self.assertIsNone(app.sched.merger.history.get("cat")) self.waitUntilSettled() self.assertEqual(self.scheds.first.sched.globals.max_hold_expiration, |