mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03: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