Skip to content

Commit 1badb64

Browse files
committed
fix tests
1 parent 475d0e9 commit 1badb64

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

storage/tests/unit/test_blob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

storage/tests/unit/test_bucket.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)