Fix tests refering to wrong IAM resource

This commit is contained in:
Wiktor Niesiobędzki 2022-11-15 15:27:53 +01:00
parent 4e6e67293b
commit 5b0b1af2f6
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ def test_resource_count(resources):
def test_iam(resources):
"Test IAM binding resources."
bindings = [r['values'] for r in resources if r['type']
== 'google_cloudfunctions_function_iam_binding']
== 'google_cloudfunctions2_function_iam_binding']
assert len(bindings) == 1
assert bindings[0]['role'] == 'roles/cloudfunctions.invoker'