diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-02-24 12:10:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 12:10:02 +0100 |
commit | 83b8193be91629174662bc38ba8de176d17255a7 (patch) | |
tree | 4c000c28363258d1ce36ddcf9f3e7ec83cbf065b /nixos/tests | |
parent | 1cdbf440a865181f166dfaa59d6b7db5bd11ccaa (diff) | |
parent | bdb0566f8b7816408d2012786c1000ccff00e3a4 (diff) |
Merge pull request #201780 from helsinki-systems/init/nextcloud-notify-push
nextcloud-notify-push: init at 0.5.0
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/nextcloud/with-postgresql-and-redis.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/tests/nextcloud/with-postgresql-and-redis.nix b/nixos/tests/nextcloud/with-postgresql-and-redis.nix index 1ef848cfb1217..d28c1bdfd6e1e 100644 --- a/nixos/tests/nextcloud/with-postgresql-and-redis.nix +++ b/nixos/tests/nextcloud/with-postgresql-and-redis.nix @@ -13,7 +13,7 @@ in { # The only thing the client needs to do is download a file. client = { ... }: {}; - nextcloud = { config, pkgs, ... }: { + nextcloud = { config, pkgs, lib, ... }: { networking.firewall.allowedTCPPorts = [ 80 ]; services.nextcloud = { @@ -34,6 +34,15 @@ in { adminpassFile = toString (pkgs.writeText "admin-pass-file" '' ${adminpass} ''); + trustedProxies = [ "::1" ]; + }; + notify_push = { + enable = true; + logLevel = "debug"; + }; + extraAppsEnable = true; + extraApps = { + inherit (pkgs."nextcloud${lib.versions.major config.services.nextcloud.package.version}Packages".apps) notify_push; }; }; @@ -94,8 +103,10 @@ in { "${withRcloneEnv} ${copySharedFile}" ) client.wait_for_unit("multi-user.target") + client.execute("${pkgs.nextcloud-notify_push.passthru.test_client}/bin/test_client http://nextcloud ${adminuser} ${adminpass} >&2 &") client.succeed( "${withRcloneEnv} ${diffSharedFile}" ) + nextcloud.wait_until_succeeds("journalctl -u nextcloud-notify_push | grep -q \"Sending ping to ${adminuser}\"") ''; })) args |