fix: only add IAM scope to credentials that can change scopes (#451)
diff --git a/system_tests/conftest.py b/system_tests/conftest.py
index 1893007..02de846 100644
--- a/system_tests/conftest.py
+++ b/system_tests/conftest.py
@@ -25,6 +25,9 @@
HERE = os.path.dirname(__file__)
DATA_DIR = os.path.join(HERE, "data")
+IMPERSONATED_SERVICE_ACCOUNT_FILE = os.path.join(
+ DATA_DIR, "impersonated_service_account.json"
+)
SERVICE_ACCOUNT_FILE = os.path.join(DATA_DIR, "service_account.json")
AUTHORIZED_USER_FILE = os.path.join(DATA_DIR, "authorized_user.json")
URLLIB3_HTTP = urllib3.PoolManager(retries=False)
@@ -40,6 +43,12 @@
@pytest.fixture
+def impersonated_service_account_file():
+ """The full path to a valid service account key file."""
+ yield IMPERSONATED_SERVICE_ACCOUNT_FILE
+
+
+@pytest.fixture
def authorized_user_file():
"""The full path to a valid authorized user file."""
yield AUTHORIZED_USER_FILE