mirror of
https://github.com/ansible/awx.git
synced 2026-07-07 14:28:08 -02:30
add rbac migration logging and reduce memory consumption
This commit is contained in:
@@ -20,12 +20,11 @@ def test_user_admin(user_project, project, user):
|
||||
assert sa.members.filter(id=joe.id).exists() is False
|
||||
assert sa.members.filter(id=admin.id).exists() is False
|
||||
|
||||
migrations = rbac.migrate_users(apps, None)
|
||||
rbac.migrate_users(apps, None)
|
||||
|
||||
# The migration should add the admin back in
|
||||
assert sa.members.filter(id=joe.id).exists() is False
|
||||
assert sa.members.filter(id=admin.id).exists() is True
|
||||
assert len(migrations) == 1
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_user_queryset(user):
|
||||
|
||||
Reference in New Issue
Block a user