mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Remove TACACS+ authentication (#15547)
Remove TACACS+ authentication from AWX. Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>
This commit is contained in:
committed by
jessicamack
parent
f22b192fb4
commit
e4c11561cc
@@ -98,21 +98,6 @@ def test_radius_settings(get, put, patch, delete, admin, settings):
|
||||
assert settings.RADIUS_SECRET == ''
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_tacacsplus_settings(get, put, patch, admin):
|
||||
url = reverse('api:setting_singleton_detail', kwargs={'category_slug': 'tacacsplus'})
|
||||
response = get(url, user=admin, expect=200)
|
||||
put(url, user=admin, data=response.data, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_SECRET': 'mysecret'}, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_SECRET': ''}, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_HOST': 'localhost'}, expect=400)
|
||||
patch(url, user=admin, data={'TACACSPLUS_SECRET': 'mysecret'}, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_HOST': 'localhost'}, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_HOST': '', 'TACACSPLUS_SECRET': ''}, expect=200)
|
||||
patch(url, user=admin, data={'TACACSPLUS_HOST': 'localhost', 'TACACSPLUS_SECRET': ''}, expect=400)
|
||||
patch(url, user=admin, data={'TACACSPLUS_HOST': 'localhost', 'TACACSPLUS_SECRET': 'mysecret'}, expect=200)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_ui_settings(get, put, patch, delete, admin):
|
||||
url = reverse('api:setting_singleton_detail', kwargs={'category_slug': 'ui'})
|
||||
|
||||
Reference in New Issue
Block a user