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