diff options
author | James E. Blair <jim@acmegating.com> | 2022-07-17 10:31:38 -0700 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2022-07-17 10:32:48 -0700 |
commit | dcd860cfc17c2829502c84c4bd2f74a35ae06160 (patch) | |
tree | 28434d9af42cfbe8feb8216965388a5c1a37b5b0 /tests | |
parent | dd9579fc1ac89afe496352dadd568645d3c54c23 (diff) | |
download | zuul-dcd860cfc17c2829502c84c4bd2f74a35ae06160.tar.gz |
Fix nodepool label query
Nodepool updated its internal interface for registering launchers.
Since Zuul uses that internal interface to determine what labels
are available, update it to match.
Change-Id: Iffa0c1c1d9ef8d195c5e1ea1b625de9d119add3b
Diffstat (limited to 'tests')
-rw-r--r-- | tests/base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/base.py b/tests/base.py index 5a85ea0d7..53771524f 100644 --- a/tests/base.py +++ b/tests/base.py @@ -3662,7 +3662,7 @@ class FakeSMTP(object): class FakeNodepool(object): REQUEST_ROOT = '/nodepool/requests' NODE_ROOT = '/nodepool/nodes' - LAUNCHER_ROOT = '/nodepool/launchers' + COMPONENT_ROOT = '/nodepool/components' log = logging.getLogger("zuul.test.FakeNodepool") @@ -3726,10 +3726,11 @@ class FakeNodepool(object): self.fulfillRequest(req) def registerLauncher(self, labels=["label1"], id="FakeLauncher"): - path = os.path.join(self.LAUNCHER_ROOT, id) + path = os.path.join(self.COMPONENT_ROOT, 'pool', id) data = {'id': id, 'supported_labels': labels} self.client.create( - path, json.dumps(data).encode('utf8'), makepath=True) + path, json.dumps(data).encode('utf8'), + ephemeral=True, makepath=True, sequence=True) def getNodeRequests(self): try: |