diff --git a/changelogs/fragments/ansible-test-auth-cleanup.yml b/changelogs/fragments/ansible-test-auth-cleanup.yml new file mode 100644 index 00000000000..b5bc7309db5 --- /dev/null +++ b/changelogs/fragments/ansible-test-auth-cleanup.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Remove support for an obsolete remote authentication method. diff --git a/test/lib/ansible_test/_internal/ci/local.py b/test/lib/ansible_test/_internal/ci/local.py index fc8ab52d640..8585e5afe4b 100644 --- a/test/lib/ansible_test/_internal/ci/local.py +++ b/test/lib/ansible_test/_internal/ci/local.py @@ -260,22 +260,9 @@ class PasswordAuthenticator(Authenticator): def prepare_auth_request(self, config: dict[str, object], context: AuthContext) -> dict[str, object]: parts = self.config_file().read_text().strip().split(maxsplit=1) - - if len(parts) == 1: # temporary backward compatibility for legacy API keys - request = dict( - config=config, - auth=dict( - remote=dict( - key=parts[0], - ), - ), - ) - - return request - username, password = parts - request = dict( + request: dict[str, object] = dict( type="remote:password", config=config, username=username,