diff options
author | pennae <82953136+pennae@users.noreply.github.com> | 2022-01-16 21:49:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 21:49:35 +0000 |
commit | d893b16bf9384ad71e7b278167c7a982de5b07a1 (patch) | |
tree | bd4d11a4390c13e1602234290e3e7705ead4b473 /nixos | |
parent | 64d73fa8bf5123e7f0ffb56e16a93a726f75d6b6 (diff) | |
parent | 3a82e3cc939998e3bf604c55b93474689a724cab (diff) | |
download | nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar.gz nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar.bz2 nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar.lz nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar.xz nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.tar.zst nixpkgs-d893b16bf9384ad71e7b278167c7a982de5b07a1.zip |
Merge pull request #154388 from winterqt/thelounge-test
nixos/thelounge: add test
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/thelounge.nix | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 8d6f6d2a5f5..6dee3baa9d5 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -474,6 +474,7 @@ in taskserver = handleTest ./taskserver.nix {}; telegraf = handleTest ./telegraf.nix {}; teleport = handleTest ./teleport.nix {}; + thelounge = handleTest ./thelounge.nix {}; tiddlywiki = handleTest ./tiddlywiki.nix {}; tigervnc = handleTest ./tigervnc.nix {}; timezone = handleTest ./timezone.nix {}; diff --git a/nixos/tests/thelounge.nix b/nixos/tests/thelounge.nix new file mode 100644 index 00000000000..e9b85685bf2 --- /dev/null +++ b/nixos/tests/thelounge.nix @@ -0,0 +1,29 @@ +import ./make-test-python.nix { + nodes = { + private = { config, pkgs, ... }: { + services.thelounge = { + enable = true; + plugins = [ pkgs.theLoungePlugins.themes.solarized ]; + }; + }; + + public = { config, pkgs, ... }: { + services.thelounge = { + enable = true; + public = true; + }; + }; + }; + + testScript = '' + start_all() + + for machine in machines: + machine.wait_for_unit("thelounge.service") + machine.wait_for_open_port(9000) + + private.wait_until_succeeds("journalctl -u thelounge.service | grep thelounge-theme-solarized") + private.wait_until_succeeds("journalctl -u thelounge.service | grep 'in private mode'") + public.wait_until_succeeds("journalctl -u thelounge.service | grep 'in public mode'") + ''; +} |