1 import ./make-test-python.nix (
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ talyz ];
12 services.engelsystem = {
14 domain = "engelsystem";
15 createDatabase = true;
17 networking.firewall.allowedTCPPorts = [ 80 443 ];
18 environment.systemPackages = with pkgs; [
26 engelsystem.wait_for_unit("phpfpm-engelsystem.service")
27 engelsystem.wait_until_succeeds("curl engelsystem/login -sS -f")
29 "curl engelsystem/login -sS -f -c cookie | xmllint -html -xmlout - >login"
32 "xml sel -T -t -m \"html/head/meta[@name='csrf-token']\" -v @content login >token"
35 "curl engelsystem/login -sS -f -b cookie -F 'login=admin' -F 'password=asdfasdf' -F '_token=<token' -L | xmllint -html -xmlout - >news"
38 "test 'News - Engelsystem' = \"$(xml sel -T -t -c html/head/title news)\""