File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 3737 machine.wait_for_unit("phpfpm-matomo.service")
3838 machine.wait_for_unit("nginx.service")
3939
40+ with subtest("matomo.js reachable via HTTP"):
41+ machine.succeed("curl -sSfk http://machine/matomo.js")
42+
43+ with subtest("js/piwik.js reachable via HTTP"):
44+ machine.succeed("curl -sSfk http://machine/js/piwik.js")
45+
46+ with subtest("matomo.php (API) reachable via HTTP"):
47+ machine.succeed("curl -sSfk http://machine/matomo.php")
48+
4049 # without the grep the command does not produce valid utf-8 for some reason
4150 with subtest("welcome screen loads"):
4251 machine.succeed(
4352 "curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'"
4453 )
54+
55+ with subtest("killing the phpfpm process should trigger an automatic restart"):
56+ machine.succeed("systemctl kill -s KILL phpfpm-matomo")
57+ machine.sleep(1)
58+ machine.wait_for_unit("phpfpm-matomo.service")
4559 '' ;
4660 } ;
4761in
You can’t perform that action at this time.
0 commit comments