mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Add test that resource list does not server error (#15635)
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user