1import ./make-test-python.nix {
2 name = "thelounge";
3
4 nodes = {
5 private = { config, pkgs, ... }: {
6 services.thelounge = {
7 enable = true;
8 plugins = [ pkgs.theLoungePlugins.themes.solarized ];
9 };
10 };
11
12 public = { config, pkgs, ... }: {
13 services.thelounge = {
14 enable = true;
15 public = true;
16 };
17 };
18 };
19
20 testScript = ''
21 start_all()
22
23 for machine in machines:
24 machine.wait_for_unit("thelounge.service")
25 machine.wait_for_open_port(9000)
26
27 private.wait_until_succeeds("journalctl -u thelounge.service | grep thelounge-theme-solarized")
28 private.wait_until_succeeds("journalctl -u thelounge.service | grep 'in private mode'")
29 public.wait_until_succeeds("journalctl -u thelounge.service | grep 'in public mode'")
30 '';
31}