diff --git a/nixos/tests/nextcloud/with-declarative-redis-and-secrets.nix b/nixos/tests/nextcloud/with-declarative-redis-and-secrets.nix index 74343a22b7ae..7ab58b037bd3 100644 --- a/nixos/tests/nextcloud/with-declarative-redis-and-secrets.nix +++ b/nixos/tests/nextcloud/with-declarative-redis-and-secrets.nix @@ -34,6 +34,13 @@ runTest ( redis = true; memcached = false; }; + notify_push = { + enable = true; + bendDomainToLocalhost = true; + logLevel = "debug"; + }; + extraAppsEnable = true; + extraApps.notify_push = config.services.nextcloud.package.packages.apps.notify_push; # This test also validates that we can use an "external" database database.createLocally = false; config = { @@ -96,6 +103,10 @@ runTest ( with subtest("non-empty redis cache"): # redis cache should not be empty nextcloud.fail('test 0 -lt "$(redis-cli --pass secret --json KEYS "*" | jq "len")"') + + with subtest("notify-push"): + client.execute("${pkgs.lib.getExe pkgs.nextcloud-notify_push.passthru.test_client} http://nextcloud ${config.adminuser} ${config.adminpass} >&2 &") + nextcloud.wait_until_succeeds("journalctl -u nextcloud-notify_push | grep -q \"Sending ping to ${config.adminuser}\"") ''; } )