Skip to content

Commit

Permalink
nextcloud-notify_push: filterAttrs for passthru.tests
Browse files Browse the repository at this point in the history
The `with-postgresql-and-redis` tests also test notify push. Derive the
attributes with filterAttrs instead of listing those
explicitly. That way one doesn't have to remember touching this
expression when adding/removing new Nextcloud majors.

Follows up on #325111
  • Loading branch information
Ma27 committed Jul 6, 2024
1 parent d8d2741 commit b84aa6d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/servers/nextcloud/notify_push.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ rustPlatform.buildRustPackage rec {
mainProgram = "test_client";
};
};
tests = {
inherit (nixosTests.nextcloud)
with-postgresql-and-redis28
with-postgresql-and-redis29;
inherit test_client;
};
tests =
lib.filterAttrs
(key: lib.const (lib.hasPrefix "with-postgresql-and-redis" key))
nixosTests.nextcloud
// {
inherit test_client;
};
};

meta = with lib; {
Expand Down

0 comments on commit b84aa6d

Please sign in to comment.