-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VERSION fixtures in several tests
A recent change to iam objects in API core started causing an error if accessing those objects as dicts, if their version is > 1. This commit addresses that by setting the VERSION to 1 in fixtures.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1928,7 +1928,7 @@ def test_get_iam_policy(self): | |
BLOB_NAME = "blob-name" | ||
PATH = "/b/name/o/%s" % (BLOB_NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
OWNER1 = "user:[email protected]" | ||
OWNER2 = "group:[email protected]" | ||
EDITOR1 = "domain:google.com" | ||
|
@@ -1980,7 +1980,7 @@ def test_get_iam_policy_w_user_project(self): | |
USER_PROJECT = "user-project-123" | ||
PATH = "/b/name/o/%s" % (BLOB_NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
RETURNED = { | ||
"resourceId": PATH, | ||
"etag": ETAG, | ||
|
@@ -2023,7 +2023,7 @@ def test_set_iam_policy(self): | |
BLOB_NAME = "blob-name" | ||
PATH = "/b/name/o/%s" % (BLOB_NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
OWNER1 = "user:[email protected]" | ||
OWNER2 = "group:[email protected]" | ||
EDITOR1 = "domain:google.com" | ||
|
@@ -2074,7 +2074,7 @@ def test_set_iam_policy_w_user_project(self): | |
USER_PROJECT = "user-project-123" | ||
PATH = "/b/name/o/%s" % (BLOB_NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
BINDINGS = [] | ||
RETURNED = {"etag": ETAG, "version": VERSION, "bindings": BINDINGS} | ||
after = ({"status": http_client.OK}, RETURNED) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2023,7 +2023,7 @@ def test_get_iam_policy(self): | |
NAME = "name" | ||
PATH = "/b/%s" % (NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
OWNER1 = "user:[email protected]" | ||
OWNER2 = "group:[email protected]" | ||
EDITOR1 = "domain:google.com" | ||
|
@@ -2067,7 +2067,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, | ||
|
@@ -2102,7 +2102,7 @@ def test_set_iam_policy(self): | |
NAME = "name" | ||
PATH = "/b/%s" % (NAME,) | ||
ETAG = "DEADBEEF" | ||
VERSION = 17 | ||
VERSION = 1 | ||
OWNER1 = "user:[email protected]" | ||
OWNER2 = "group:[email protected]" | ||
EDITOR1 = "domain:google.com" | ||
|
@@ -2155,7 +2155,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:[email protected]" | ||
OWNER2 = "group:[email protected]" | ||
EDITOR1 = "domain:google.com" | ||
|