File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1980,7 +1980,7 @@ def test_get_iam_policy_w_requested_policy_version(self):
19801980 BLOB_NAME = "blob-name"
19811981 PATH = "/b/name/o/%s" % (BLOB_NAME ,)
19821982 ETAG = "DEADBEEF"
1983- VERSION = 3
1983+ VERSION = 1
19841984 OWNER1 = "user:phred@example.com"
19851985 OWNER2 = "group:cloud-logs@google.com"
19861986 RETURNED = {
@@ -1998,7 +1998,7 @@ def test_get_iam_policy_w_requested_policy_version(self):
19981998 bucket = _Bucket (client = client )
19991999 blob = self ._make_one (BLOB_NAME , bucket = bucket )
20002000
2001- policy = blob .get_iam_policy ()
2001+ policy = blob .get_iam_policy (requested_policy_version = 3 )
20022002
20032003 kw = connection ._requested
20042004 self .assertEqual (len (kw ), 1 )
Original file line number Diff line number Diff line change @@ -2004,7 +2004,7 @@ def test_get_iam_policy(self):
20042004 NAME = "name"
20052005 PATH = "/b/%s" % (NAME ,)
20062006 ETAG = "DEADBEEF"
2007- VERSION = 17
2007+ VERSION = 1
20082008 OWNER1 = "user:phred@example.com"
20092009 OWNER2 = "group:cloud-logs@google.com"
20102010 EDITOR1 = "domain:google.com"
@@ -2048,7 +2048,7 @@ def test_get_iam_policy_w_user_project(self):
20482048 USER_PROJECT = "user-project-123"
20492049 PATH = "/b/%s" % (NAME ,)
20502050 ETAG = "DEADBEEF"
2051- VERSION = 17
2051+ VERSION = 1
20522052 RETURNED = {
20532053 "resourceId" : PATH ,
20542054 "etag" : ETAG ,
@@ -2115,7 +2115,7 @@ def test_set_iam_policy(self):
21152115 NAME = "name"
21162116 PATH = "/b/%s" % (NAME ,)
21172117 ETAG = "DEADBEEF"
2118- VERSION = 17
2118+ VERSION = 1
21192119 OWNER1 = "user:phred@example.com"
21202120 OWNER2 = "group:cloud-logs@google.com"
21212121 EDITOR1 = "domain:google.com"
@@ -2168,7 +2168,7 @@ def test_set_iam_policy_w_user_project(self):
21682168 USER_PROJECT = "user-project-123"
21692169 PATH = "/b/%s" % (NAME ,)
21702170 ETAG = "DEADBEEF"
2171- VERSION = 17
2171+ VERSION = 1
21722172 OWNER1 = "user:phred@example.com"
21732173 OWNER2 = "group:cloud-logs@google.com"
21742174 EDITOR1 = "domain:google.com"
You can’t perform that action at this time.
0 commit comments