Unverified Commit bb8d898f authored by Johannes Kirschbauer's avatar Johannes Kirschbauer Committed by GitHub
Browse files

nixosTests.step-ca: wait for caddy to finish ACME dance (#382212)

parents d12aeacd 7f9ea915
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -95,6 +95,10 @@ import ./make-test-python.nix ({ pkgs, ... }:
        catester.succeed("curl https://caclient/ | grep \"Welcome to nginx!\"")

        caclientcaddy.wait_for_unit("caddy.service")
        catester.succeed("curl https://caclientcaddy/ | grep \"Welcome to Caddy!\"")

        # It's hard to know when caddy has finished the ACME
        # dance with step-ca, so we keep trying to curl
        # until succeess.
        catester.wait_until_succeeds("curl https://caclientcaddy/ | grep \"Welcome to Caddy!\"")
      '';
  })