diff options
author | Xavier Vello <xavier.vello@gmail.com> | 2020-06-27 21:20:16 +0200 |
---|---|---|
committer | Xavier Vello <xavier.vello@gmail.com> | 2020-07-06 23:14:33 +0200 |
commit | 45f80def41ad4789a231e67fa1ec984370651439 (patch) | |
tree | 73ae47fadae93f497152ebcc6c679153501d13e4 /tests | |
parent | 31cf3818dfce1f6694daac833928157fee62ebac (diff) |
Setup rspamd controller to serve web UI assets
Diffstat (limited to 'tests')
-rw-r--r-- | tests/intern.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/intern.nix b/tests/intern.nix index 039f2e1..f96643c 100644 --- a/tests/intern.nix +++ b/tests/intern.nix @@ -81,5 +81,9 @@ import (pkgs.path + "/nixos/tests/make-test.nix") { $machine->waitUntilSucceeds("timeout 1 ${pkgs.netcat}/bin/nc -U /run/rspamd/rspamd-milter.sock < /dev/null; [ \$? -eq 124 ]"); $machine->succeed("cat ${sendMail} | ${pkgs.netcat-gnu}/bin/nc localhost 25 | grep -q 'This account cannot receive emails'" ); }; + + subtest "rspamd controller serves web ui", sub { + $machine->succeed("${pkgs.curl}/bin/curl --unix-socket /run/rspamd/worker-controller.sock http://localhost/ | grep -q '<body>'" ); + }; ''; } |