mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Add test that resource list does not server error (#15635)
This commit is contained in:
parent
54487573f3
commit
3dbcfb138c
@ -0,0 +1,15 @@
|
||||
import pytest
|
||||
|
||||
from ansible_base.lib.utils.response import get_relative_url
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_users_in_resource_list(admin_user, rando, get):
|
||||
url = get_relative_url("resource-list")
|
||||
get(url=url, expect=200, user=admin_user)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_user_resource_detail(admin_user, rando, get):
|
||||
url = get_relative_url("resource-detail", kwargs={'ansible_id': str(rando.resource.ansible_id)})
|
||||
get(url=url, expect=200, user=admin_user)
|
||||
Loading…
x
Reference in New Issue
Block a user