at master 923 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 # nodePackages.thelounge-theme-* has been removed 11 # plugins = [ pkgs.theLoungePlugins.themes.solarized ]; 12 }; 13 }; 14 15 public = 16 { config, pkgs, ... }: 17 { 18 services.thelounge = { 19 enable = true; 20 public = true; 21 }; 22 }; 23 }; 24 25 testScript = '' 26 start_all() 27 28 for machine in machines: 29 machine.wait_for_unit("thelounge.service") 30 machine.wait_for_open_port(9000) 31 32 # private.wait_until_succeeds("journalctl -u thelounge.service | grep thelounge-theme-solarized") 33 private.wait_until_succeeds("journalctl -u thelounge.service | grep 'in private mode'") 34 public.wait_until_succeeds("journalctl -u thelounge.service | grep 'in public mode'") 35 ''; 36}