diff options
author | Aaron Andersen <aaron@fosslib.net> | 2021-03-12 20:42:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 20:42:09 -0500 |
commit | 5a24206e17857c91f896cb343d2d8981e5ba4ea0 (patch) | |
tree | 7b0ba2048830f0443252b3d76ca2f98a6b59d681 /nixos/tests | |
parent | 4786ad90598412eb8da313e1d2f9c08687a7d527 (diff) | |
parent | dac07be800a8f76757eee153e0e7424d18c5c08f (diff) |
Merge pull request #111030 from cript0nauta/miniflux-sudo
nixos/miniflux: don't depend on sudo
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/miniflux.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/tests/miniflux.nix b/nixos/tests/miniflux.nix index 9f8b52c3c8570..797a2787d1aa3 100644 --- a/nixos/tests/miniflux.nix +++ b/nixos/tests/miniflux.nix @@ -20,6 +20,13 @@ with lib; services.miniflux.enable = true; }; + withoutSudo = + { ... }: + { + services.miniflux.enable = true; + security.sudo.enable = false; + }; + customized = { ... }: { @@ -46,6 +53,13 @@ with lib; "curl 'http://localhost:${toString defaultPort}/v1/me' -u '${defaultUsername}:${defaultPassword}' -H Content-Type:application/json | grep -q '\"is_admin\":true'" ) + withoutSudo.wait_for_unit("miniflux.service") + withoutSudo.wait_for_open_port(${toString defaultPort}) + withoutSudo.succeed("curl --fail 'http://localhost:${toString defaultPort}/healthcheck' | grep -q OK") + withoutSudo.succeed( + "curl 'http://localhost:${toString defaultPort}/v1/me' -u '${defaultUsername}:${defaultPassword}' -H Content-Type:application/json | grep -q '\"is_admin\":true'" + ) + customized.wait_for_unit("miniflux.service") customized.wait_for_open_port(${toString port}) customized.succeed("curl --fail 'http://localhost:${toString port}/healthcheck' | grep -q OK") |