@@ -100,8 +100,8 @@ def test_{{ service.client_name|snake_case }}_client_options():
100100 )
101101
102102 # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
103- # "Never ".
104- os.environ["GOOGLE_API_USE_MTLS"] = "Never "
103+ # "never ".
104+ os.environ["GOOGLE_API_USE_MTLS"] = "never "
105105 with mock.patch('{{ (api.naming.module_namespace + (api.naming.versioned_module_name,) + service.meta.address.subpackage)|join(".") }}.services.{{ service.name|snake_case }}.transports.{{ service.name }}GrpcTransport.__init__') as grpc_transport:
106106 grpc_transport.return_value = None
107107 client = {{ service.client_name }}()
@@ -113,8 +113,8 @@ def test_{{ service.client_name|snake_case }}_client_options():
113113 )
114114
115115 # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
116- # "Always ".
117- os.environ["GOOGLE_API_USE_MTLS"] = "Always "
116+ # "always ".
117+ os.environ["GOOGLE_API_USE_MTLS"] = "always "
118118 with mock.patch('{{ (api.naming.module_namespace + (api.naming.versioned_module_name,) + service.meta.address.subpackage)|join(".") }}.services.{{ service.name|snake_case }}.transports.{{ service.name }}GrpcTransport.__init__') as grpc_transport:
119119 grpc_transport.return_value = None
120120 client = {{ service.client_name }}()
@@ -126,8 +126,8 @@ def test_{{ service.client_name|snake_case }}_client_options():
126126 )
127127
128128 # Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
129- # "Auto ", and client_cert_source is provided.
130- os.environ["GOOGLE_API_USE_MTLS"] = "Auto "
129+ # "auto ", and client_cert_source is provided.
130+ os.environ["GOOGLE_API_USE_MTLS"] = "auto "
131131 options = client_options.ClientOptions(client_cert_source=client_cert_source_callback)
132132 with mock.patch('{{ (api.naming.module_namespace + (api.naming.versioned_module_name,) + service.meta.address.subpackage)|join(".") }}.services.{{ service.name|snake_case }}.transports.{{ service.name }}GrpcTransport.__init__') as grpc_transport:
133133 grpc_transport.return_value = None
@@ -140,8 +140,8 @@ def test_{{ service.client_name|snake_case }}_client_options():
140140 )
141141
142142 # Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
143- # "Auto ", and default_client_cert_source is provided.
144- os.environ["GOOGLE_API_USE_MTLS"] = "Auto "
143+ # "auto ", and default_client_cert_source is provided.
144+ os.environ["GOOGLE_API_USE_MTLS"] = "auto "
145145 with mock.patch('{{ (api.naming.module_namespace + (api.naming.versioned_module_name,) + service.meta.address.subpackage)|join(".") }}.services.{{ service.name|snake_case }}.transports.{{ service.name }}GrpcTransport.__init__') as grpc_transport:
146146 with mock.patch('google.auth.transport.mtls.has_default_client_cert_source', return_value=True):
147147 grpc_transport.return_value = None
@@ -154,8 +154,8 @@ def test_{{ service.client_name|snake_case }}_client_options():
154154 )
155155
156156 # Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
157- # "Auto ", but client_cert_source and default_client_cert_source are None.
158- os.environ["GOOGLE_API_USE_MTLS"] = "Auto "
157+ # "auto ", but client_cert_source and default_client_cert_source are None.
158+ os.environ["GOOGLE_API_USE_MTLS"] = "auto "
159159 with mock.patch('{{ (api.naming.module_namespace + (api.naming.versioned_module_name,) + service.meta.address.subpackage)|join(".") }}.services.{{ service.name|snake_case }}.transports.{{ service.name }}GrpcTransport.__init__') as grpc_transport:
160160 with mock.patch('google.auth.transport.mtls.has_default_client_cert_source', return_value=False):
161161 grpc_transport.return_value = None
0 commit comments