mirror of
https://github.com/ansible/awx.git
synced 2026-11-22 16:26:10 -03:30
Added Team.migrate_to_rbac and tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_team_migration_user(team, user, permissions):
|
||||
u = user('user', False)
|
||||
team.users.add(u)
|
||||
|
||||
assert not team.accessible_by(u, permissions['auditor'])
|
||||
|
||||
migrated = team.migrate_to_rbac()
|
||||
assert len(migrated) == 1
|
||||
assert team.accessible_by(u, permissions['auditor'])
|
||||
|
||||
Reference in New Issue
Block a user