From 1badb64b7a5ad903203e7e760a305729d5533b43 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 17 Dec 2019 15:11:33 -0800 Subject: [PATCH] fix tests --- storage/tests/unit/test_blob.py | 4 ++-- storage/tests/unit/test_bucket.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/storage/tests/unit/test_blob.py b/storage/tests/unit/test_blob.py index 492711e13459..866cac290225 100644 --- a/storage/tests/unit/test_blob.py +++ b/storage/tests/unit/test_blob.py @@ -1980,7 +1980,7 @@ def test_get_iam_policy_w_requested_policy_version(self): BLOB_NAME = "blob-name" PATH = "/b/name/o/%s" % (BLOB_NAME,) ETAG = "DEADBEEF" - VERSION = 3 + VERSION = 1 OWNER1 = "user:phred@example.com" OWNER2 = "group:cloud-logs@google.com" RETURNED = { @@ -1998,7 +1998,7 @@ def test_get_iam_policy_w_requested_policy_version(self): bucket = _Bucket(client=client) blob = self._make_one(BLOB_NAME, bucket=bucket) - policy = blob.get_iam_policy() + policy = blob.get_iam_policy(requested_policy_version=3) kw = connection._requested self.assertEqual(len(kw), 1) diff --git a/storage/tests/unit/test_bucket.py b/storage/tests/unit/test_bucket.py index 792d2104a736..5ac2b8514523 100644 --- a/storage/tests/unit/test_bucket.py +++ b/storage/tests/unit/test_bucket.py @@ -2004,7 +2004,7 @@ def test_get_iam_policy(self): NAME = "name" PATH = "/b/%s" % (NAME,) ETAG = "DEADBEEF" - VERSION = 17 + VERSION = 1 OWNER1 = "user:phred@example.com" OWNER2 = "group:cloud-logs@google.com" EDITOR1 = "domain:google.com" @@ -2048,7 +2048,7 @@ def test_get_iam_policy_w_user_project(self): USER_PROJECT = "user-project-123" PATH = "/b/%s" % (NAME,) ETAG = "DEADBEEF" - VERSION = 17 + VERSION = 1 RETURNED = { "resourceId": PATH, "etag": ETAG, @@ -2115,7 +2115,7 @@ def test_set_iam_policy(self): NAME = "name" PATH = "/b/%s" % (NAME,) ETAG = "DEADBEEF" - VERSION = 17 + VERSION = 1 OWNER1 = "user:phred@example.com" OWNER2 = "group:cloud-logs@google.com" EDITOR1 = "domain:google.com" @@ -2168,7 +2168,7 @@ def test_set_iam_policy_w_user_project(self): USER_PROJECT = "user-project-123" PATH = "/b/%s" % (NAME,) ETAG = "DEADBEEF" - VERSION = 17 + VERSION = 1 OWNER1 = "user:phred@example.com" OWNER2 = "group:cloud-logs@google.com" EDITOR1 = "domain:google.com"