mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
fix rbac summary_fields test
This commit is contained in:
parent
6a5f4d6113
commit
f12c6530cf
@ -408,15 +408,14 @@ def test_ensure_rbac_fields_are_present(organization, get, admin):
|
||||
assert 'summary_fields' in org
|
||||
assert 'roles' in org['summary_fields']
|
||||
|
||||
org_role_response = get(org['summary_fields']['roles']['admin_role']['url'], admin)
|
||||
role_pk = org['summary_fields']['roles']['admin_role']['id']
|
||||
role_url = reverse('api:role_detail', args=(role_pk,))
|
||||
org_role_response = get(role_url, admin)
|
||||
|
||||
assert org_role_response.status_code == 200
|
||||
role = org_role_response.data
|
||||
assert role['related']['organization'] == url
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_ensure_permissions_is_present(organization, get, user):
|
||||
url = reverse('api:organization_detail', args=(organization.id,))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user