Lines Matching +full:application +full:- +full:default +full:- +full:credentials
7 # http://www.apache.org/licenses/LICENSE-2.0
42 GAE_APP_URL_TMPL = "https://{}-dot-{}.appspot.com"
43 GAE_TEST_APP_SERVICE = "google-auth-system-tests"
46 CLOUD_SDK_DIST_FILENAME = "google-cloud-sdk.tar.gz"
67 CLOUD_SDK_INSTALL_DIR = CLOUD_SDK_ROOT.join("google-cloud-sdk")
97 session.run(GCLOUD, "components", "update", "-q")
103 session.run("wget", CLOUD_SDK_DOWNLOAD_URL, "-O", str(tar_path), silent=True)
106 session.run("tar", "xzf", str(tar_path), "-C", str(CLOUD_SDK_ROOT))
112 "--usage-reporting",
114 "--path-update",
116 "--command-completion",
123 """Copies credentials into the SDK root as the application default
124 credentials."""
132 """Installs and configures the Cloud SDK with the given application default
133 credentials.
140 # Setup the service account as the default user account. This is
142 # change the application default credentials file, which is user
143 # credentials instead of service account credentials sometimes.
145 GCLOUD, "auth", "activate-service-account", "--key-file", SERVICE_ACCOUNT_FILE
149 session.run(GCLOUD, "config", "set", "project", "example-project")
153 # Copy the credentials file to the config root. This is needed because
155 # a particular set of credentials. However, this does verify that gcloud
156 # also considers the credentials valid by calling application-default
157 # print-access-token
160 # Calling this forces the Cloud SDK to read the credentials we just wrote
161 # and obtain a new access token with those credentials. This validates
162 # that our credentials matches the format expected by gcloud.
165 GCLOUD, "auth", "application-default", "print-access-token", silent=True
171 TEST_DEPENDENCIES_ASYNC = ["aiohttp", "pytest-asyncio", "nest-asyncio"]
177 def default(session, *test_paths): function
181 sponge_log = f"--junitxml=system_{str(session._runner.friendly_name)}_sponge_log.xml"
191 default(
204 default(
217 default(
227 session.env[EXPLICIT_PROJECT_ENV] = "example-project"
231 default(
244 default(
256 default(
269 default(
279 # unset Application Default Credentials so
280 # credentials are detected from environment
283 default(
297 # Unlike the default tests above, the App Engine system test require a
303 ["gcloud", "config", "list", "project", "--format", "value(core.project)"]
305 .decode("utf-8")
316 # Vendor in the test application's dependencies
320 "pip", "install", "--target", "lib", "-r", "requirements.txt", silent=True
323 # Deploy the application.
324 session.run("gcloud", "app", "deploy", "-q", "app.yaml")
329 default(
337 session.install(*TEST_DEPENDENCIES_SYNC, "google-cloud-pubsub==1.7.0")
339 default(
351 default(
363 default(
375 default(
387 "google-api-python-client",
389 default(
401 "google-cloud-storage",
403 default(
416 default(
429 default(
442 default(
452 session.env[EXPLICIT_PROJECT_ENV] = "example-project"
456 default(
469 default(
481 default(
494 default(