about summary refs log tree commit diff
path: root/nixos/tests/jirafeau.nix
blob: 0f5af7f718a403ee872f384e241f5947f7105fbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import ./make-test-python.nix ({ lib, ... }:

with lib;

{
  name = "jirafeau";
  meta.maintainers = with maintainers; [ davidtwco ];

  nodes.machine = { pkgs, ... }: {
    services.jirafeau = {
      enable = true;
    };
  };

  testScript = ''
    machine.start()
    machine.wait_for_unit("phpfpm-jirafeau.service")
    machine.wait_for_unit("nginx.service")
    machine.wait_for_open_port(80)
    machine.succeed("curl -sSfL http://localhost/ | grep 'Jirafeau'")
  '';
})