Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions postgraphile/postgraphile/__tests__/schema/v4/rbac.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ import * as core from "./core.ts";

test(
"prints a schema from non-root role, using RBAC permissions",
core.test(__filename, ["a", "b", "c"], { ignoreRBAC: false }, (client) =>
client.query("set role postgraphile_test_authenticator"),
core.test(
__filename,
["a", "b", "c"],
{ ignoreRBAC: false },
async (client) => {
await client.query(
"revoke usage on schema enum_tables from postgraphile_test_authenticator",
);
await client.query("set role postgraphile_test_authenticator");
},
),
);
Loading