mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
59e0120aa5
62733b37b4
broke evaluation in all
places `pkgs.mysql` was used. Fix this by changing all occurrences to
`pkgs.mariadb`.
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ system ? builtins.currentSystem, config ? { }
|
|
, pkgs ? import ../.. { inherit system config; } }:
|
|
|
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
|
with pkgs.lib;
|
|
|
|
let
|
|
matomoTest = package:
|
|
makeTest {
|
|
machine = { config, pkgs, ... }: {
|
|
services.matomo = {
|
|
package = package;
|
|
enable = true;
|
|
nginx = {
|
|
forceSSL = false;
|
|
enableACME = false;
|
|
};
|
|
};
|
|
services.mysql = {
|
|
enable = true;
|
|
package = pkgs.mariadb;
|
|
};
|
|
services.nginx.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("mysql.service")
|
|
machine.wait_for_unit("phpfpm-matomo.service")
|
|
machine.wait_for_unit("nginx.service")
|
|
|
|
# without the grep the command does not produce valid utf-8 for some reason
|
|
with subtest("welcome screen loads"):
|
|
machine.succeed(
|
|
"curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'"
|
|
)
|
|
'';
|
|
};
|
|
in {
|
|
matomo = matomoTest pkgs.matomo // {
|
|
name = "matomo";
|
|
meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];
|
|
};
|
|
matomo-beta = matomoTest pkgs.matomo-beta // {
|
|
name = "matomo-beta";
|
|
meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];
|
|
};
|
|
}
|