nixosTests.matomo: port to python
This commit is contained in:
parent
555e06c788
commit
1a5d3070ac
@ -1,7 +1,7 @@
|
|||||||
{ system ? builtins.currentSystem, config ? { }
|
{ system ? builtins.currentSystem, config ? { }
|
||||||
, pkgs ? import ../.. { inherit system config; } }:
|
, pkgs ? import ../.. { inherit system config; } }:
|
||||||
|
|
||||||
with import ../lib/testing.nix { inherit system pkgs; };
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -24,11 +24,16 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
$machine->waitForUnit("mysql.service");
|
machine.wait_for_unit("mysql.service")
|
||||||
$machine->waitForUnit("phpfpm-matomo.service");
|
machine.wait_for_unit("phpfpm-matomo.service")
|
||||||
$machine->waitForUnit("nginx.service");
|
machine.wait_for_unit("nginx.service")
|
||||||
$machine->succeed("curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'");
|
|
||||||
|
# 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 {
|
in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user