mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Functional test added.
This commit is contained in:
parent
b719b7276f
commit
89cbceeab8
13
awx/main/tests/functional/api/test_role.py
Normal file
13
awx/main/tests/functional/api/test_role.py
Normal file
@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_admin_visible_to_orphaned_users(get, alice):
|
||||
names = set()
|
||||
|
||||
response = get(reverse('api:role_list'), user=alice)
|
||||
for item in response.data['results']:
|
||||
names.add(item['name'])
|
||||
assert 'System Auditor' in names
|
||||
assert 'System Administrator' in names
|
||||
Loading…
x
Reference in New Issue
Block a user