fixup! cluster/services/consul: test in simulacrum
This commit is contained in:
parent
fc8df77023
commit
06043e438e
1 changed files with 3 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue