We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b662978 commit 5c9fec7Copy full SHA for 5c9fec7
2 files changed
storage/removeBucketIamMember.js
@@ -66,7 +66,7 @@ function main(
66
if (role.members.length === 0) {
67
policy.bindings.splice(index, 1);
68
} else {
69
- policy.bindings.index = role;
+ policy.bindings[index] = role;
70
}
71
72
// Updates the bucket's IAM policy
storage/system-test/iam.test.js
@@ -31,8 +31,7 @@ const roleName = 'roles/storage.objectViewer';
31
// Condition
32
const title = 'match-prefix';
33
const description = 'Applies to objects matching a prefix';
34
-const expression =
35
- 'resource.name.startsWith("projects/_/buckets/bucket-name/objects/prefix-a-")';
+const expression = `resource.name.startsWith("projects/_/buckets/${bucketName}/objects/prefix-a-")`;
36
37
before(async () => {
38
await bucket.create();
0 commit comments