@@ -38,6 +38,7 @@ def test_constructor():
3838 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
3939 ],
4040 api_audience = "foo2.googleapis.com" ,
41+ universe_domain = "googleapis.com" ,
4142 )
4243
4344 assert options .api_endpoint == "foo.googleapis.com"
@@ -49,6 +50,7 @@ def test_constructor():
4950 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
5051 ]
5152 assert options .api_audience == "foo2.googleapis.com"
53+ assert options .universe_domain == "googleapis.com"
5254
5355
5456def test_constructor_with_encrypted_cert_source ():
@@ -110,6 +112,7 @@ def test_from_dict():
110112 options = client_options .from_dict (
111113 {
112114 "api_endpoint" : "foo.googleapis.com" ,
115+ "universe_domain" : "googleapis.com" ,
113116 "client_cert_source" : get_client_cert ,
114117 "quota_project_id" : "quote-proj" ,
115118 "credentials_file" : "path/to/credentials.json" ,
@@ -122,6 +125,7 @@ def test_from_dict():
122125 )
123126
124127 assert options .api_endpoint == "foo.googleapis.com"
128+ assert options .universe_domain == "googleapis.com"
125129 assert options .client_cert_source () == (b"cert" , b"key" )
126130 assert options .quota_project_id == "quote-proj"
127131 assert options .credentials_file == "path/to/credentials.json"
@@ -148,6 +152,7 @@ def test_repr():
148152 expected_keys = set (
149153 [
150154 "api_endpoint" ,
155+ "universe_domain" ,
151156 "client_cert_source" ,
152157 "client_encrypted_cert_source" ,
153158 "quota_project_id" ,
0 commit comments