3
0
Fork 0
forked from mirrors/nixpkgs

nixos/traefik: wait for first success

possible fix for #115418
This commit is contained in:
Maxine Aubrey 2021-08-04 23:55:51 +02:00
parent 4a97603613
commit 34add8ca59
No known key found for this signature in database
GPG key ID: F6FE033DFCB899F7

View file

@ -74,6 +74,8 @@ import ./make-test-python.nix ({ pkgs, ... }: {
client.wait_for_unit("multi-user.target")
client.wait_until_succeeds("curl -sSf -H Host:nginx.traefik.test http://traefik/")
with subtest("Check that a container can be reached via Traefik"):
assert "Hello from NGINX" in client.succeed(
"curl -sSf -H Host:nginx.traefik.test http://traefik/"