mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
ensure read_role is not being returned
This commit is contained in:
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'] == []
|
||||
Reference in New Issue
Block a user