File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,12 +122,13 @@ def system(session):
122122 session .install ("-e" , "." )
123123
124124 # Additional setup for VPCSC system tests
125- env = {
126- "PROJECT_ID" : "secure-gcp-test-project-4" ,
127- "GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT" : os .environ .get (
128- "PROJECT_ID"
129- ),
130- }
125+ if os .environ .get ("GOOGLE_CLOUD_TESTS_IN_VPCSC" ) != "true" :
126+ # Unset PROJECT_ID, since VPCSC system tests expect this to be a project
127+ # within the VPCSC perimeter.
128+ env = {
129+ "PROJECT_ID" : "" ,
130+ "GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT" : os .environ .get ("PROJECT_ID" ),
131+ }
131132
132133 # Run py.test against the system tests.
133134 if system_test_exists :
Original file line number Diff line number Diff line change 2828from google .cloud .monitoring_v3 import enums
2929
3030PROJECT_INSIDE = os .environ .get ("PROJECT_ID" , None )
31+ if not PROJECT_INSIDE :
32+ PROJECT_INSIDE = None
3133PROJECT_OUTSIDE = os .environ .get (
3234 "GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT" , None
3335)
You can’t perform that action at this time.
0 commit comments