Update tests

This commit is contained in:
Andrew Kingston 2024-09-27 09:08:38 +01:00
parent 496538ac01
commit b53bc5dfaf
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -835,9 +835,9 @@ describe("/rowsActions", () => {
// Delete explicit view permissions so they inherit table permissions // Delete explicit view permissions so they inherit table permissions
await config.api.permission.revoke({ await config.api.permission.revoke({
roleId: roles.BUILTIN_ROLE_IDS.PUBLIC, // Don't think this matters since we are revoking the permission
level: PermissionLevel.READ, level: PermissionLevel.READ,
resourceId: viewId, resourceId: viewId,
roleId: "inherited",
}) })
return { permissionResource: tableId, triggerResouce: viewId } return { permissionResource: tableId, triggerResouce: viewId }

View File

@ -2248,6 +2248,11 @@ describe.each([
level: PermissionLevel.READ, level: PermissionLevel.READ,
resourceId: table._id!, resourceId: table._id!,
}) })
await config.api.permission.revoke({
roleId: roles.BUILTIN_ROLE_IDS.PUBLIC, // Don't think this matters since we are revoking the permission
level: PermissionLevel.READ,
resourceId: view.id,
})
await config.publish() await config.publish()
const response = await config.api.viewV2.publicSearch(view.id) const response = await config.api.viewV2.publicSearch(view.id)