mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
ensure read_role is not being returned
This commit is contained in:
parent
8e89edc27f
commit
4d3d38c4ac
11
awx/main/tests/functional/api/test_team.py
Normal file
11
awx/main/tests/functional/api/test_team.py
Normal file
@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_team_role_list_no_read_role(organization_factory, admin, get):
|
||||
objects = organization_factory("test_org", teams=["test_team"])
|
||||
response = get(reverse('api:team_roles_list', args=(objects.teams.test_team.pk,)), admin)
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.data['results'] == []
|
||||
Loading…
x
Reference in New Issue
Block a user