Skip to content

Commit

Permalink
Skip user_project-based rewrite tests if envvar is not set. (#4175)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Oct 12, 2017
1 parent e1a2483 commit c0bbf6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ def test_rewrite_rotate_encryption_key(self):

self.assertEqual(dest.download_as_string(), source_data)

@unittest.skipUnless(USER_PROJECT, 'USER_PROJECT not set in environment.')
def test_rewrite_add_key_with_user_project(self):
file_data = self.FILES['simple']
new_bucket_name = 'rewrite-key-up' + unique_resource_id('-')
Expand All @@ -803,6 +804,7 @@ def test_rewrite_add_key_with_user_project(self):
finally:
retry_429(created.delete)(force=True)

@unittest.skipUnless(USER_PROJECT, 'USER_PROJECT not set in environment.')
def test_rewrite_rotate_with_user_project(self):
BLOB_NAME = 'rotating-keys'
file_data = self.FILES['simple']
Expand Down

0 comments on commit c0bbf6d

Please sign in to comment.