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:
parent
d8d2741a36
commit
b84aa6dd93
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user