@@ -38,6 +38,7 @@ def test_constructor():
38
38
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
39
39
],
40
40
api_audience = "foo2.googleapis.com" ,
41
+ universe_domain = "googleapis.com" ,
41
42
)
42
43
43
44
assert options .api_endpoint == "foo.googleapis.com"
@@ -49,6 +50,7 @@ def test_constructor():
49
50
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
50
51
]
51
52
assert options .api_audience == "foo2.googleapis.com"
53
+ assert options .universe_domain == "googleapis.com"
52
54
53
55
54
56
def test_constructor_with_encrypted_cert_source ():
@@ -110,6 +112,7 @@ def test_from_dict():
110
112
options = client_options .from_dict (
111
113
{
112
114
"api_endpoint" : "foo.googleapis.com" ,
115
+ "universe_domain" : "googleapis.com" ,
113
116
"client_cert_source" : get_client_cert ,
114
117
"quota_project_id" : "quote-proj" ,
115
118
"credentials_file" : "path/to/credentials.json" ,
@@ -122,6 +125,7 @@ def test_from_dict():
122
125
)
123
126
124
127
assert options .api_endpoint == "foo.googleapis.com"
128
+ assert options .universe_domain == "googleapis.com"
125
129
assert options .client_cert_source () == (b"cert" , b"key" )
126
130
assert options .quota_project_id == "quote-proj"
127
131
assert options .credentials_file == "path/to/credentials.json"
@@ -148,6 +152,7 @@ def test_repr():
148
152
expected_keys = set (
149
153
[
150
154
"api_endpoint" ,
155
+ "universe_domain" ,
151
156
"client_cert_source" ,
152
157
"client_encrypted_cert_source" ,
153
158
"quota_project_id" ,
0 commit comments