File tree Expand file tree Collapse file tree 4 files changed +5
-29
lines changed
Filter options
packages/google-cloud-gke-hub Expand file tree Collapse file tree 4 files changed +5
-29
lines changed
Original file line number Diff line number Diff line change 1
1
docker :
2
- digest : sha256:cfc0e802701262c211703c468874d767f65dabe6a1a71d0e07bfc8a3d5175f32
3
2
image : gcr.io/repo-automation-bots/owlbot-python:latest
3
+ digest : sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
Original file line number Diff line number Diff line change 26
26
hooks :
27
27
- id : black
28
28
- repo : https://gitlab.com/pycqa/flake8
29
- rev : 3.9.0
29
+ rev : 3.9.2
30
30
hooks :
31
31
- id : flake8
Original file line number Diff line number Diff line change @@ -160,21 +160,7 @@ Running System Tests
160
160
auth settings and change some configuration in your project to
161
161
run all the tests.
162
162
163
- - System tests will be run against an actual project and
164
- so you'll need to provide some environment variables to facilitate
165
- authentication to your project:
166
-
167
- - ``GOOGLE_APPLICATION_CREDENTIALS ``: The path to a JSON key file;
168
- Such a file can be downloaded directly from the developer's console by clicking
169
- "Generate new JSON key". See private key
170
- `docs <https://cloud.google.com/storage/docs/authentication#generating-a-private-key >`__
171
- for more details.
172
-
173
- - Once you have downloaded your json keys, set the environment variable
174
- ``GOOGLE_APPLICATION_CREDENTIALS `` to the absolute path of the json file::
175
-
176
- $ export GOOGLE_APPLICATION_CREDENTIALS="/Users/<your_username>/path/to/app_credentials.json"
177
-
163
+ - System tests will be run against an actual project. You should use local credentials from gcloud when possible. See `Best practices for application authentication <https://cloud.google.com/docs/authentication/best-practices-applications#local_development_and_testing_with_the >`__. Some tests require a service account. For those tests see `Authenticating as a service account <https://cloud.google.com/docs/authentication/production >`__.
178
164
179
165
*************
180
166
Test Coverage
Original file line number Diff line number Diff line change @@ -62,16 +62,9 @@ def lint(session):
62
62
session .run ("flake8" , "google" , "tests" )
63
63
64
64
65
- @nox .session (python = "3.6" )
65
+ @nox .session (python = DEFAULT_PYTHON_VERSION )
66
66
def blacken (session ):
67
- """Run black.
68
-
69
- Format code to uniform standard.
70
-
71
- This currently uses Python 3.6 due to the automated Kokoro run of synthtool.
72
- That run uses an image that doesn't have 3.6 installed. Before updating this
73
- check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
74
- """
67
+ """Run black. Format code to uniform standard."""
75
68
session .install (BLACK_VERSION )
76
69
session .run (
77
70
"black" , * BLACK_PATHS ,
@@ -131,9 +124,6 @@ def system(session):
131
124
# Check the value of `RUN_SYSTEM_TESTS` env var. It defaults to true.
132
125
if os .environ .get ("RUN_SYSTEM_TESTS" , "true" ) == "false" :
133
126
session .skip ("RUN_SYSTEM_TESTS is set to false, skipping" )
134
- # Sanity check: Only run tests if the environment variable is set.
135
- if not os .environ .get ("GOOGLE_APPLICATION_CREDENTIALS" , "" ):
136
- session .skip ("Credentials must be set via environment variable" )
137
127
# Install pyopenssl for mTLS testing.
138
128
if os .environ .get ("GOOGLE_API_USE_CLIENT_CERTIFICATE" , "false" ) == "true" :
139
129
session .install ("pyopenssl" )
You can’t perform that action at this time.
0 commit comments