diff options
Diffstat (limited to 'nixos/tests/nitter.nix')
-rw-r--r-- | nixos/tests/nitter.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/nitter.nix b/nixos/tests/nitter.nix new file mode 100644 index 00000000000..e17f1c47343 --- /dev/null +++ b/nixos/tests/nitter.nix @@ -0,0 +1,16 @@ +import ./make-test-python.nix ({ pkgs, ... }: + +{ + name = "nitter"; + meta.maintainers = with pkgs.lib.maintainers; [ erdnaxe ]; + + nodes.machine = { + services.nitter.enable = true; + }; + + testScript = '' + machine.wait_for_unit("nitter.service") + machine.wait_for_open_port("8080") + machine.succeed("curl --fail http://localhost:8080/") + ''; +}) |