diff --git a/nisystemlink/clients/auth/_auth_client.py b/nisystemlink/clients/auth/_auth_client.py index 071f821e..5ec0ce3a 100644 --- a/nisystemlink/clients/auth/_auth_client.py +++ b/nisystemlink/clients/auth/_auth_client.py @@ -28,6 +28,6 @@ def __init__(self, configuration: Optional[core.HttpConfiguration] = None): super().__init__(configuration, base_path="/niauth/v1/") @get("auth") - def get_auth(self) -> models.AuthInfo: + def authenticate(self) -> models.AuthInfo: """Authenticates the given x-ni-api-key and returns information about the caller.""" ... diff --git a/tests/integration/auth/test_auth.py b/tests/integration/auth/test_auth.py index be2816a6..28b32d98 100644 --- a/tests/integration/auth/test_auth.py +++ b/tests/integration/auth/test_auth.py @@ -12,7 +12,6 @@ def client(enterprise_config): @pytest.mark.integration class TestAuth: def test__get_auth__returns(self, client: AuthClient): - auth_response = client.get_auth() - assert getattr(auth_response, "error") is None + auth_response = client.authenticate() assert auth_response.workspaces is not None assert len(auth_response.workspaces) >= 1