mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
unit test fixes from 3.1.4 merge
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import pytest
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
from awx.api.versioning import reverse
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_proxy_ip_whitelist(get, patch, admin):
|
||||
url = reverse('api:setting_singleton_detail', args=('system',))
|
||||
url = reverse('api:setting_singleton_detail', kwargs={'category_slug': 'system'})
|
||||
patch(url, user=admin, data={
|
||||
'REMOTE_HOST_HEADERS': [
|
||||
'HTTP_X_FROM_THE_LOAD_BALANCER',
|
||||
|
||||
Reference in New Issue
Block a user