diff options
Diffstat (limited to 'nixos/tests/libreddit.nix')
-rw-r--r-- | nixos/tests/libreddit.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/libreddit.nix b/nixos/tests/libreddit.nix new file mode 100644 index 00000000000..f7ef701d086 --- /dev/null +++ b/nixos/tests/libreddit.nix @@ -0,0 +1,19 @@ +import ./make-test-python.nix ({ lib, ... }: + +with lib; + +{ + name = "libreddit"; + meta.maintainers = with maintainers; [ fab ]; + + nodes.machine = + { pkgs, ... }: + { services.libreddit.enable = true; }; + + testScript = '' + machine.wait_for_unit("libreddit.service") + machine.wait_for_open_port("8080") + # The service wants to get data from https://www.reddit.com + machine.succeed("curl http://localhost:8080/") + ''; +}) |