From b3082615d990586b1bb7f361e80112ad0848ac6c Mon Sep 17 00:00:00 2001 From: Andrei Pampu Date: Mon, 29 Mar 2021 17:51:05 +0300 Subject: nixos/ombi: add test for ombi to ensure startup --- nixos/tests/ombi.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nixos/tests/ombi.nix (limited to 'nixos/tests/ombi.nix') diff --git a/nixos/tests/ombi.nix b/nixos/tests/ombi.nix new file mode 100644 index 00000000000..bfca86af817 --- /dev/null +++ b/nixos/tests/ombi.nix @@ -0,0 +1,18 @@ +import ./make-test-python.nix ({ lib, ... }: + +with lib; + +{ + name = "ombi"; + meta.maintainers = with maintainers; [ woky ]; + + nodes.machine = + { pkgs, ... }: + { services.ombi.enable = true; }; + + testScript = '' + machine.wait_for_unit("ombi.service") + machine.wait_for_open_port("5000") + machine.succeed("curl --fail http://localhost:5000/") + ''; +}) -- cgit 1.4.1