diff options
author | Alexandre Iooss <erdnaxe@crans.org> | 2021-07-26 12:00:05 +0200 |
---|---|---|
committer | Alexandre Iooss <erdnaxe@crans.org> | 2021-07-30 15:19:49 +0200 |
commit | 534dbcb28f654c770a6e226e66c4299182494904 (patch) | |
tree | eaa91e85f06c977ddf78afeb0fce3043172f349b /nixos/tests/nitter.nix | |
parent | c5e0a9980b4f92c2a47bf44e507bdb7450037f8c (diff) |
nixos/nitter: init module and test
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 0000000000000..e17f1c473436f --- /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/") + ''; +}) |