Content-Length: 314119 | pFad | http://github.com/googleapis/google-cloud-python/commit/7f04e61105bb1fbb9cb1d5fb59a64fbcc1a32c5b

E5 tests(dlp): normalize VPCSC configuration in systests (#9608) · googleapis/google-cloud-python@7f04e61 · GitHub
Skip to content

Commit 7f04e61

Browse files
authored
tests(dlp): normalize VPCSC configuration in systests (#9608)
Toward #9580.
1 parent bab05ed commit 7f04e61

File tree

2 files changed

+471
-507
lines changed

2 files changed

+471
-507
lines changed

packages/google-cloud-dlp/noxfile.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,25 +118,11 @@ def system(session):
118118
session.install("-e", "../test_utils/")
119119
session.install("-e", ".")
120120

121-
env = {}
122-
# Additional setup for VPCSC system tests
123-
if os.environ.get("GOOGLE_CLOUD_TESTS_IN_VPCSC", "false").lower() != "true":
124-
# Unset PROJECT_ID, since VPCSC system tests expect this to be a project
125-
# within the VPCSC perimeter.
126-
env = {
127-
"PROJECT_ID": "",
128-
"GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT": os.environ.get(
129-
"PROJECT_ID"
130-
),
131-
}
132-
133121
# Run py.test against the system tests.
134122
if system_test_exists:
135-
session.run("py.test", "--quiet", system_test_path, env=env, *session.posargs)
123+
session.run("py.test", "--quiet", system_test_path, *session.posargs)
136124
if system_test_folder_exists:
137-
session.run(
138-
"py.test", "--quiet", system_test_folder_path, env=env, *session.posargs
139-
)
125+
session.run("py.test", "--quiet", system_test_folder_path, *session.posargs)
140126

141127

142128
@nox.session(python="3.7")

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/7f04e61105bb1fbb9cb1d5fb59a64fbcc1a32c5b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy