From 2eeffeecd459fe655a5b894328741ce1ff8b804a Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Fri, 14 Jun 2024 12:03:27 -0700 Subject: [PATCH] chore: update typo in 403 error message (#1115) --- google/cloud/sql/connector/instance.py | 2 +- tests/unit/test_instance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google/cloud/sql/connector/instance.py b/google/cloud/sql/connector/instance.py index c7aa237e..ab3c29de 100644 --- a/google/cloud/sql/connector/instance.py +++ b/google/cloud/sql/connector/instance.py @@ -150,7 +150,7 @@ async def _perform_refresh(self) -> ConnectionInfo: f"refresh operation failed: {str(e)}" ) if e.status == 403: - e.message = "Forbidden: Authenticated IAM principal does not seeem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal." + e.message = "Forbidden: Authenticated IAM principal does not seem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal." raise except Exception as e: diff --git a/tests/unit/test_instance.py b/tests/unit/test_instance.py index 7e01621b..9b667675 100644 --- a/tests/unit/test_instance.py +++ b/tests/unit/test_instance.py @@ -340,7 +340,7 @@ async def test_ClientResponseError( assert e.status == 403 assert ( e.message == "Forbidden: Authenticated IAM principal does not " - "seeem authorized to make API request. Verify " + "seem authorized to make API request. Verify " "'Cloud SQL Admin API' is enabled within your GCP project and " "'Cloud SQL Client' role has been granted to IAM principal." )