Skip to content

Commit c210d29

Browse files
committed
fix tests
1 parent 4077045 commit c210d29

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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
@@ -2014,7 +2014,7 @@ def test_get_iam_policy(self):
20142014
NAME = "name"
20152015
PATH = "/b/%s" % (NAME,)
20162016
ETAG = "DEADBEEF"
2017-
VERSION = 17
2017+
VERSION = 1
20182018
OWNER1 = "user:phred@example.com"
20192019
OWNER2 = "group:cloud-logs@google.com"
20202020
EDITOR1 = "domain:google.com"
@@ -2058,7 +2058,7 @@ def test_get_iam_policy_w_user_project(self):
20582058
USER_PROJECT = "user-project-123"
20592059
PATH = "/b/%s" % (NAME,)
20602060
ETAG = "DEADBEEF"
2061-
VERSION = 17
2061+
VERSION = 1
20622062
RETURNED = {
20632063
"resourceId": PATH,
20642064
"etag": ETAG,
@@ -2125,7 +2125,7 @@ def test_set_iam_policy(self):
21252125
NAME = "name"
21262126
PATH = "/b/%s" % (NAME,)
21272127
ETAG = "DEADBEEF"
2128-
VERSION = 17
2128+
VERSION = 1
21292129
OWNER1 = "user:phred@example.com"
21302130
OWNER2 = "group:cloud-logs@google.com"
21312131
EDITOR1 = "domain:google.com"
@@ -2178,7 +2178,7 @@ def test_set_iam_policy_w_user_project(self):
21782178
USER_PROJECT = "user-project-123"
21792179
PATH = "/b/%s" % (NAME,)
21802180
ETAG = "DEADBEEF"
2181-
VERSION = 17
2181+
VERSION = 1
21822182
OWNER1 = "user:phred@example.com"
21832183
OWNER2 = "group:cloud-logs@google.com"
21842184
EDITOR1 = "domain:google.com"

0 commit comments

Comments
 (0)