2020-02-06 17:00:19 +01:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "jirafeau";
|
2023-04-30 16:26:17 +02:00
|
|
|
meta.maintainers = with lib.maintainers; [ davidtwco ];
|
2020-02-06 17:00:19 +01:00
|
|
|
|
|
|
|
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'")
|
|
|
|
'';
|
|
|
|
})
|