1 { system ? builtins.currentSystem, config ? { }
2 , pkgs ? import ../.. { inherit system config; } }:
4 with import ../lib/testing-python.nix { inherit system pkgs; };
12 nodes.machine = { config, pkgs, ... }: {
23 package = pkgs.mariadb;
25 services.nginx.enable = true;
30 machine.wait_for_unit("mysql.service")
31 machine.wait_for_unit("phpfpm-matomo.service")
32 machine.wait_for_unit("nginx.service")
34 # without the grep the command does not produce valid utf-8 for some reason
35 with subtest("welcome screen loads"):
37 "curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'"
42 matomo = matomoTest pkgs.matomo // {
44 meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];
46 matomo-beta = matomoTest pkgs.matomo-beta // {
48 meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];