1import ./make-test-python.nix ({ pkgs, ... }: {
2 name = "cloudlog";
3 meta = {
4 maintainers = with pkgs.lib.maintainers; [ melling ];
5 };
6 nodes = {
7 machine = {
8 services.mysql.package = pkgs.mariadb;
9 services.cloudlog.enable = true;
10 };
11 };
12 testScript = ''
13 start_all()
14 machine.wait_for_unit("phpfpm-cloudlog")
15 machine.wait_for_open_port(80);
16 machine.wait_until_succeeds("curl -s -L --fail http://localhost | grep 'Login - Cloudlog'")
17 '';
18})