File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,7 @@ def test_key_policy(self):
180
180
self .member ,
181
181
self .role )
182
182
183
- @eventually_consistent .call (exceptions = [Aborted , AssertionError ])
184
- def _ ():
183
+ def check_policy ():
185
184
policy = snippets .get_crypto_key_policy (self .project_id ,
186
185
self .location ,
187
186
self .keyring_id ,
@@ -191,6 +190,8 @@ def _():
191
190
if b .role == self .role and self .member in b .members :
192
191
found = True
193
192
assert found
193
+ eventually_consistent .call (check_policy ,
194
+ exceptions = [Aborted , AssertionError ])
194
195
# remove member
195
196
snippets .remove_member_from_crypto_key_policy (self .project_id ,
196
197
self .location ,
@@ -199,8 +200,7 @@ def _():
199
200
self .member ,
200
201
self .role )
201
202
202
- @eventually_consistent .call (exceptions = [Aborted , AssertionError ])
203
- def _ ():
203
+ def check_policy ():
204
204
policy = snippets .get_crypto_key_policy (self .project_id ,
205
205
self .location ,
206
206
self .keyring_id ,
@@ -210,6 +210,8 @@ def _():
210
210
if b .role == self .role and self .member in b .members :
211
211
found = True
212
212
assert not found
213
+ eventually_consistent .call (check_policy ,
214
+ exceptions = [Aborted , AssertionError ])
213
215
214
216
def test_symmetric_encrypt_decrypt (self ):
215
217
cipher_bytes = snippets .encrypt_symmetric (self .project_id ,
You can’t perform that action at this time.
0 commit comments