Skip to content

Commit 58b55f7

Browse files
committed
fix: nixos test for plv8 extension to use the supabase_admin user
We switched to using the supabase_admin user for our Postgres tests instead of the default postgres user. This change updates the authentication methods and user management in the NixOS test configurations for the plv8 extension.
1 parent 06075a6 commit 58b55f7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

nix/ext/tests/plv8.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ self.inputs.nixpkgs.lib.nixos.runTest {
6060
services.postgresql = {
6161
enable = true;
6262
package = postgresqlWithExtension self.packages.${pkgs.system}.postgresql_15;
63+
authentication = ''
64+
local all postgres peer map=postgres
65+
local all all peer map=root
66+
'';
67+
identMap = ''
68+
root root supabase_admin
69+
postgres postgres postgres
70+
'';
71+
ensureUsers = [
72+
{
73+
name = "supabase_admin";
74+
ensureClauses.superuser = true;
75+
}
76+
];
6377
};
6478
};
6579
testScript =

0 commit comments

Comments
 (0)