mirror of
https://github.com/ansible/awx.git
synced 2026-07-07 14:28:08 -02:30
Removed team<->org role cycle
This commit is contained in:
10
awx/main/tests/functional/test_teams.py
Normal file
10
awx/main/tests/functional/test_teams.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.django_db()
|
||||
def test_admin_not_member(team):
|
||||
"Test to ensure we don't add admin_role as a parent to team.member_role, as "
|
||||
"this creates a cycle with organization administration, which we've decided "
|
||||
"to remove support for"
|
||||
|
||||
assert team.admin_role.is_ancestor_of(team.member_role) is False
|
||||
Reference in New Issue
Block a user