nixos tests: fix postgresql-wal-receiver

This commit is contained in:
Léo Gaspard 2021-01-05 04:12:53 +01:00
parent fe8ec6a07f
commit a7331d1403

View File

@ -6,13 +6,14 @@
with import ../lib/testing-python.nix { inherit system pkgs; };
let
lib = pkgs.lib;
# Makes a test for a PostgreSQL package, given by name and looked up from `pkgs`.
makePostgresqlWalReceiverTest = postgresqlPackage:
{
name = postgresqlPackage;
value =
let
pkg = pkgs."${postgresqlPackage}";
postgresqlDataDir = "/var/lib/postgresql/${pkg.psqlSchema}";
replicationUser = "wal_receiver_user";