mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03: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()
|
||||
assert len(result) == 1
|
||||
config = result[0]
|
||||
assert config['category'] == 'TACACS+'
|
||||
assert config['category'] == 'TACACSPLUS'
|
||||
settings_data = config['settings']
|
||||
assert settings_data['name'] == 'default'
|
||||
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.
|
||||
"""
|
||||
|
||||
CATEGORY = "TACACS+"
|
||||
CATEGORY = "TACACSPLUS"
|
||||
AUTH_TYPE = "ansible_base.authentication.authenticator_plugins.tacacs"
|
||||
|
||||
def get_authenticator_type(self):
|
||||
"""Get the human-readable authenticator type name."""
|
||||
return "TACACS+"
|
||||
"""Get the human-readable authenticator type name.
|
||||
Named TACACSPLUS because `+` is not allowed in authenticator slug.
|
||||
"""
|
||||
return "TACACSPLUS"
|
||||
|
||||
def get_controller_config(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user