File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636
3737from test_utils .retry import RetryErrors
3838from test_utils .system import unique_resource_id
39+ from test_utils .vpcsc_config import vpcsc_config
3940
4041
4142USER_PROJECT = os .environ .get ("GOOGLE_CLOUD_TESTS_USER_PROJECT" )
42- RUNNING_IN_VPCSC = os .getenv ("GOOGLE_CLOUD_TESTS_IN_VPCSC" , "" ).lower () == "true"
4343
4444
4545def _bad_copy (bad_request ):
@@ -641,7 +641,7 @@ def test_upload_gzip_encoded_download_raw(self):
641641
642642
643643class TestUnicode (unittest .TestCase ):
644- @unittest . skipIf ( RUNNING_IN_VPCSC , "Test is not VPCSC compatible." )
644+ @vpcsc_config . skip_if_inside_vpcsc
645645 def test_fetch_object_and_check_content (self ):
646646 client = storage .Client ()
647647 bucket = client .bucket ("storage-library-test-bucket" )
@@ -1380,7 +1380,7 @@ class TestAnonymousClient(unittest.TestCase):
13801380
13811381 PUBLIC_BUCKET = "gcp-public-data-landsat"
13821382
1383- @unittest . skipIf ( RUNNING_IN_VPCSC , "Test is not VPCSC compatible." )
1383+ @vpcsc_config . skip_if_inside_vpcsc
13841384 def test_access_to_public_bucket (self ):
13851385 anonymous = storage .Client .create_anonymous_client ()
13861386 bucket = anonymous .bucket (self .PUBLIC_BUCKET )
You can’t perform that action at this time.
0 commit comments