diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-19 01:05:25 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-19 01:05:25 +0200 |
commit | 1c5bdf76e97868e06e887a880055344ccdba1d64 (patch) | |
tree | 29e590425d56ce6fedac2ddbe110a7edcfb65bb7 /nixos/tests/libreddit.nix | |
parent | ecae4bfe9de8b4560cd498283e53bbfecb904808 (diff) |
nixos/libreddit: init module and test
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 0000000000000..f7ef701d0865f --- /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/") + ''; +}) |