fixup! cluster/services/consul: test in simulacrum

This commit is contained in:
Max Headroom 2024-08-13 22:07:28 +02:00
parent fc8df77023
commit 06043e438e

View file

@ -5,9 +5,10 @@
start_all() start_all()
with subtest("should form cluster"): with subtest("should form cluster"):
for machine in machines: nodes = [ n for n in machines if n != nowhere ]
for machine in nodes:
machine.succeed("systemctl start consul-ready.service") machine.succeed("systemctl start consul-ready.service")
for machine in machines: for machine in nodes:
consulConfig = json.loads(machine.succeed("cat /etc/consul.json")) consulConfig = json.loads(machine.succeed("cat /etc/consul.json"))
addr = consulConfig["addresses"]["http"] addr = consulConfig["addresses"]["http"]
port = consulConfig["ports"]["http"] port = consulConfig["ports"]["http"]