summaryrefslogtreecommitdiffstats
path: root/nixos/tests/cloudlog.nix
blob: f067e82943ad0f4e3e156790da9dff80b7d54165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs, ... }:
{
  name = "cloudlog";
  containers = {
    machine = {
      services.mysql.package = pkgs.mariadb;
      services.cloudlog.enable = true;
    };
  };
  testScript = ''
    start_all()
    machine.wait_for_unit("phpfpm-cloudlog")
    machine.wait_for_open_port(80);
    machine.wait_until_succeeds("curl -s -L --fail http://localhost | grep 'Login - Cloudlog'")
  '';
}