diff options
author | Izorkin <izorkin@elven.pw> | 2022-04-10 20:41:30 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2022-04-10 20:48:43 +0300 |
commit | 63ef6aebef14c23276532a3abdff01fc14b618ee (patch) | |
tree | 3541d13df7eb475819407f00a146e7cd7d4fdbb1 /nixos/tests/web-apps | |
parent | 07962ac6f132a12e133c1a057ddb2507d96386d2 (diff) |
nixos/tests: add nifi test
Diffstat (limited to 'nixos/tests/web-apps')
-rw-r--r-- | nixos/tests/web-apps/nifi.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/tests/web-apps/nifi.nix b/nixos/tests/web-apps/nifi.nix new file mode 100644 index 0000000000000..92f7fa231df3a --- /dev/null +++ b/nixos/tests/web-apps/nifi.nix @@ -0,0 +1,30 @@ +import ../make-test-python.nix ({pkgs, ...}: +{ + name = "nifi"; + meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; + + nodes = { + nifi = { pkgs, ... }: { + virtualisation = { + memorySize = 2048; + diskSize = 4096; + }; + services.nifi = { + enable = true; + enableHTTPS = false; + }; + }; + }; + + testScript = '' + nifi.start() + + nifi.wait_for_unit("nifi.service") + nifi.wait_for_open_port(8080) + + # Check if NiFi is running + nifi.succeed("curl --fail http://127.0.0.1:8080/nifi/login 2> /dev/null | grep 'NiFi Login'") + + nifi.shutdown() + ''; +}) |