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:
Bruno Cesar Rocha
2025-08-01 19:38:33 +01:00
committed by thedoubl3j
parent a0b6083d4e
commit cf0bc16cf7
2 changed files with 6 additions and 4 deletions

View File

@@ -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'

View File

@@ -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):
"""