@@ -85,13 +85,15 @@ def test_print_bucket_acl_for_user(test_bucket, capsys):
85
85
assert "OWNER" in out
86
86
87
87
88
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
88
89
def test_add_bucket_owner (test_bucket ):
89
90
storage_add_bucket_owner .add_bucket_owner (test_bucket .name , TEST_EMAIL )
90
91
91
92
test_bucket .acl .reload ()
92
93
assert "OWNER" in test_bucket .acl .user (TEST_EMAIL ).get_roles ()
93
94
94
95
96
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
95
97
def test_remove_bucket_owner (test_bucket ):
96
98
test_bucket .acl .user (TEST_EMAIL ).grant_owner ()
97
99
test_bucket .acl .save ()
@@ -103,6 +105,7 @@ def test_remove_bucket_owner(test_bucket):
103
105
assert "OWNER" not in test_bucket .acl .user (TEST_EMAIL ).get_roles ()
104
106
105
107
108
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
106
109
def test_add_bucket_default_owner (test_bucket ):
107
110
storage_add_bucket_default_owner .add_bucket_default_owner (
108
111
test_bucket .name , TEST_EMAIL
@@ -113,6 +116,7 @@ def test_add_bucket_default_owner(test_bucket):
113
116
assert "OWNER" in roles
114
117
115
118
119
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
116
120
def test_remove_bucket_default_owner (test_bucket ):
117
121
test_bucket .acl .user (TEST_EMAIL ).grant_owner ()
118
122
test_bucket .acl .save ()
@@ -146,6 +150,7 @@ def test_print_blob_acl_for_user(test_blob, capsys):
146
150
assert "OWNER" in out
147
151
148
152
153
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
149
154
def test_add_blob_owner (test_blob ):
150
155
storage_add_file_owner .add_blob_owner (
151
156
test_blob .bucket .name , test_blob .name , TEST_EMAIL )
@@ -154,6 +159,7 @@ def test_add_blob_owner(test_blob):
154
159
assert "OWNER" in test_blob .acl .user (TEST_EMAIL ).get_roles ()
155
160
156
161
162
+ @backoff .on_exception (backoff .expo , HttpError , max_time = 60 )
157
163
def test_remove_blob_owner (test_blob ):
158
164
test_blob .acl .user (TEST_EMAIL ).grant_owner ()
159
165
test_blob .acl .save ()
0 commit comments