mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
fix: tacacs+ -> TACACSPLUS (#7039)
* fix: tacacs+ -> TACACSPLUS Gateway doesn't allow `+` to be used in slug. AAP-50774 * Fixed assertion --------- Co-authored-by: Andrew Potozniak <potozniak@redhat.com>
This commit is contained in:
committed by
thedoubl3j
parent
a0b6083d4e
commit
cf0bc16cf7
@@ -12,7 +12,7 @@ def test_get_controller_config(test_tacacs_config):
|
|||||||
result = obj.get_controller_config()
|
result = obj.get_controller_config()
|
||||||
assert len(result) == 1
|
assert len(result) == 1
|
||||||
config = result[0]
|
config = result[0]
|
||||||
assert config['category'] == 'TACACS+'
|
assert config['category'] == 'TACACSPLUS'
|
||||||
settings_data = config['settings']
|
settings_data = config['settings']
|
||||||
assert settings_data['name'] == 'default'
|
assert settings_data['name'] == 'default'
|
||||||
assert settings_data['type'] == 'ansible_base.authentication.authenticator_plugins.tacacs'
|
assert settings_data['type'] == 'ansible_base.authentication.authenticator_plugins.tacacs'
|
||||||
|
|||||||
@@ -14,12 +14,14 @@ class TACACSMigrator(BaseAuthenticatorMigrator):
|
|||||||
Handles the migration of TACACS+ authenticators from AWX to Gateway.
|
Handles the migration of TACACS+ authenticators from AWX to Gateway.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
CATEGORY = "TACACS+"
|
CATEGORY = "TACACSPLUS"
|
||||||
AUTH_TYPE = "ansible_base.authentication.authenticator_plugins.tacacs"
|
AUTH_TYPE = "ansible_base.authentication.authenticator_plugins.tacacs"
|
||||||
|
|
||||||
def get_authenticator_type(self):
|
def get_authenticator_type(self):
|
||||||
"""Get the human-readable authenticator type name."""
|
"""Get the human-readable authenticator type name.
|
||||||
return "TACACS+"
|
Named TACACSPLUS because `+` is not allowed in authenticator slug.
|
||||||
|
"""
|
||||||
|
return "TACACSPLUS"
|
||||||
|
|
||||||
def get_controller_config(self):
|
def get_controller_config(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user