nextcloud-notify_push: filterAttrs for passthru.tests

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
This commit is contained in:
Maximilian Bosch 2024-07-06 23:41:18 +02:00
parent d8d2741a36
commit b84aa6dd93
No known key found for this signature in database

View File

@ -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; {