diff --git a/tests/test_rebac_e2e.py b/tests/test_rebac_e2e.py index 9947e28..88dfaea 100644 --- a/tests/test_rebac_e2e.py +++ b/tests/test_rebac_e2e.py @@ -9,7 +9,7 @@ from permit.api.models import ( DerivedRoleBlockEdit, DerivedRoleRuleCreate, - PermitBackendSchemasSchemaDerivedRoleDerivedRoleSettings, + PermitBackendSchemasSchemaDerivedRoleRuleDerivationSettings, RelationCreate, RelationshipTupleCreate, RelationshipTupleDelete, @@ -157,7 +157,7 @@ class PermissionAssertions: role=MEMBER, on_resource="Account", linked_by_relation="account", - when=PermitBackendSchemasSchemaDerivedRoleDerivedRoleSettings( + when=PermitBackendSchemasSchemaDerivedRoleRuleDerivationSettings( no_direct_roles_on_object=True, ), ) @@ -176,7 +176,7 @@ class PermissionAssertions: # tests creation of role derivation as part of the resource role # (account admin is editor on everything) granted_to=DerivedRoleBlockEdit( - when=PermitBackendSchemasSchemaDerivedRoleDerivedRoleSettings( + when=PermitBackendSchemasSchemaDerivedRoleRuleDerivationSettings( no_direct_roles_on_object=True, ), users_with_role=[ @@ -427,14 +427,14 @@ class PermissionAssertions: pre_assertion_hook=lambda permit: permit.api.resource_roles.update_role_derivation_conditions( resource_key=FOLDER.key, role_key=EDITOR, - conditions=PermitBackendSchemasSchemaDerivedRoleDerivedRoleSettings( + conditions=PermitBackendSchemasSchemaDerivedRoleRuleDerivationSettings( no_direct_roles_on_object=False ), ), post_assertion_hook=lambda permit: permit.api.resource_roles.update_role_derivation_conditions( resource_key=FOLDER.key, role_key=EDITOR, - conditions=PermitBackendSchemasSchemaDerivedRoleDerivedRoleSettings( + conditions=PermitBackendSchemasSchemaDerivedRoleRuleDerivationSettings( no_direct_roles_on_object=True ), ),