nixos/tests: fix lemmy under network-online dep fix
This commit is contained in:
parent
426d5046b5
commit
5714c8465a
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ in
|
||||||
server.succeed("curl --fail localhost:${toString uiPort}")
|
server.succeed("curl --fail localhost:${toString uiPort}")
|
||||||
|
|
||||||
with subtest("Lemmy-UI responds through the caddy reverse proxy"):
|
with subtest("Lemmy-UI responds through the caddy reverse proxy"):
|
||||||
|
server.systemctl("start network-online.target")
|
||||||
server.wait_for_unit("network-online.target")
|
server.wait_for_unit("network-online.target")
|
||||||
server.wait_for_unit("caddy.service")
|
server.wait_for_unit("caddy.service")
|
||||||
server.wait_for_open_port(80)
|
server.wait_for_open_port(80)
|
||||||
|
@ -66,6 +67,7 @@ in
|
||||||
assert "Lemmy" in body, f"String Lemmy not found in response for ${lemmyNodeName}: \n{body}"
|
assert "Lemmy" in body, f"String Lemmy not found in response for ${lemmyNodeName}: \n{body}"
|
||||||
|
|
||||||
with subtest("the server is exposed externally"):
|
with subtest("the server is exposed externally"):
|
||||||
|
client.systemctl("start network-online.target")
|
||||||
client.wait_for_unit("network-online.target")
|
client.wait_for_unit("network-online.target")
|
||||||
client.succeed("curl -v --fail ${lemmyNodeName}")
|
client.succeed("curl -v --fail ${lemmyNodeName}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue