1 import ../make-test-python.nix (
4 cert = pkgs.runCommand "selfSignedCerts" { nativeBuildInputs = [ pkgs.openssl ]; } ''
5 openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=localhost' -days 36500
7 cp key.pem cert.pem $out
19 hostname = "localhost";
20 appKeyFile = "${pkgs.writeText "keyfile" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}";
23 sslCertificate = "${cert}/cert.pem";
24 sslCertificateKey = "${cert}/key.pem";
32 machine.wait_for_unit("monica-setup.service")
33 machine.wait_for_open_port(443)
34 machine.succeed("curl -k --fail https://localhost", timeout=10)