1import ./make-test-python.nix ({ lib, ... }:
2
3with lib;
4
5{
6 name = "jirafeau";
7 meta.maintainers = with maintainers; [ davidtwco ];
8
9 nodes.machine = { pkgs, ... }: {
10 services.jirafeau = {
11 enable = true;
12 };
13 };
14
15 testScript = ''
16 machine.start()
17 machine.wait_for_unit("phpfpm-jirafeau.service")
18 machine.wait_for_unit("nginx.service")
19 machine.wait_for_open_port(80)
20 machine.succeed("curl -sSfL http://localhost/ | grep 'Jirafeau'")
21 '';
22})