File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
37
37
from test_utils .retry import RetryErrors
38
38
from test_utils .system import unique_resource_id
39
+ from test_utils .vpcsc_config import vpcsc_config
39
40
40
41
41
42
USER_PROJECT = os .environ .get ("GOOGLE_CLOUD_TESTS_USER_PROJECT" )
42
- RUNNING_IN_VPCSC = os .getenv ("GOOGLE_CLOUD_TESTS_IN_VPCSC" , "" ).lower () == "true"
43
43
44
44
45
45
def _bad_copy (bad_request ):
@@ -641,7 +641,7 @@ def test_upload_gzip_encoded_download_raw(self):
641
641
642
642
643
643
class TestUnicode (unittest .TestCase ):
644
- @unittest . skipIf ( RUNNING_IN_VPCSC , "Test is not VPCSC compatible." )
644
+ @vpcsc_config . skip_if_inside_vpcsc
645
645
def test_fetch_object_and_check_content (self ):
646
646
client = storage .Client ()
647
647
bucket = client .bucket ("storage-library-test-bucket" )
@@ -1380,7 +1380,7 @@ class TestAnonymousClient(unittest.TestCase):
1380
1380
1381
1381
PUBLIC_BUCKET = "gcp-public-data-landsat"
1382
1382
1383
- @unittest . skipIf ( RUNNING_IN_VPCSC , "Test is not VPCSC compatible." )
1383
+ @vpcsc_config . skip_if_inside_vpcsc
1384
1384
def test_access_to_public_bucket (self ):
1385
1385
anonymous = storage .Client .create_anonymous_client ()
1386
1386
bucket = anonymous .bucket (self .PUBLIC_BUCKET )
You can’t perform that action at this time.
0 commit comments