Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 7579a26

Browse files
committed
fix test: warning match string
1 parent 940b492 commit 7579a26

12 files changed

Lines changed: 12 additions & 12 deletions

File tree

gapic/templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ def test_{{ service.name|snake_case }}_transport_channel_mtls_with_client_cert_s
14861486
grpc_create_channel.return_value = mock_grpc_channel
14871487

14881488
cred = ga_credentials.AnonymousCredentials()
1489-
with pytest.warns(DeprecationWarning, match="mtls") as record:
1489+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
14901490
with mock.patch.object(google.auth, 'default') as adc:
14911491
adc.return_value = (cred, None)
14921492
transport = transport_class(

tests/integration/goldens/asset/tests/unit/gapic/asset_v1/test_asset_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17726,7 +17726,7 @@ def test_asset_service_transport_channel_mtls_with_client_cert_source(
1772617726
grpc_create_channel.return_value = mock_grpc_channel
1772717727

1772817728
cred = ga_credentials.AnonymousCredentials()
17729-
with pytest.warns(DeprecationWarning, match="mtls") as record:
17729+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
1773017730
with mock.patch.object(google.auth, 'default') as adc:
1773117731
adc.return_value = (cred, None)
1773217732
transport = transport_class(

tests/integration/goldens/credentials/tests/unit/gapic/credentials_v1/test_iam_credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3986,7 +3986,7 @@ def test_iam_credentials_transport_channel_mtls_with_client_cert_source(
39863986
grpc_create_channel.return_value = mock_grpc_channel
39873987

39883988
cred = ga_credentials.AnonymousCredentials()
3989-
with pytest.warns(DeprecationWarning, match="mtls") as record:
3989+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
39903990
with mock.patch.object(google.auth, 'default') as adc:
39913991
adc.return_value = (cred, None)
39923992
transport = transport_class(

tests/integration/goldens/eventarc/tests/unit/gapic/eventarc_v1/test_eventarc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15392,7 +15392,7 @@ def test_eventarc_transport_channel_mtls_with_client_cert_source(
1539215392
grpc_create_channel.return_value = mock_grpc_channel
1539315393

1539415394
cred = ga_credentials.AnonymousCredentials()
15395-
with pytest.warns(DeprecationWarning, match="mtls") as record:
15395+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
1539615396
with mock.patch.object(google.auth, 'default') as adc:
1539715397
adc.return_value = (cred, None)
1539815398
transport = transport_class(

tests/integration/goldens/logging/tests/unit/gapic/logging_v2/test_config_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12911,7 +12911,7 @@ def test_config_service_v2_transport_channel_mtls_with_client_cert_source(
1291112911
grpc_create_channel.return_value = mock_grpc_channel
1291212912

1291312913
cred = ga_credentials.AnonymousCredentials()
12914-
with pytest.warns(DeprecationWarning, match="mtls") as record:
12914+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
1291512915
with mock.patch.object(google.auth, 'default') as adc:
1291612916
adc.return_value = (cred, None)
1291712917
transport = transport_class(

tests/integration/goldens/logging/tests/unit/gapic/logging_v2/test_logging_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3459,7 +3459,7 @@ def test_logging_service_v2_transport_channel_mtls_with_client_cert_source(
34593459
grpc_create_channel.return_value = mock_grpc_channel
34603460

34613461
cred = ga_credentials.AnonymousCredentials()
3462-
with pytest.warns(DeprecationWarning, match="mtls") as record:
3462+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
34633463
with mock.patch.object(google.auth, 'default') as adc:
34643464
adc.return_value = (cred, None)
34653465
transport = transport_class(

tests/integration/goldens/logging/tests/unit/gapic/logging_v2/test_metrics_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ def test_metrics_service_v2_transport_channel_mtls_with_client_cert_source(
32633263
grpc_create_channel.return_value = mock_grpc_channel
32643264

32653265
cred = ga_credentials.AnonymousCredentials()
3266-
with pytest.warns(DeprecationWarning, match="mtls") as record:
3266+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
32673267
with mock.patch.object(google.auth, 'default') as adc:
32683268
adc.return_value = (cred, None)
32693269
transport = transport_class(

tests/integration/goldens/logging_internal/tests/unit/gapic/logging_v2/test_config_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12911,7 +12911,7 @@ def test_config_service_v2_transport_channel_mtls_with_client_cert_source(
1291112911
grpc_create_channel.return_value = mock_grpc_channel
1291212912

1291312913
cred = ga_credentials.AnonymousCredentials()
12914-
with pytest.warns(DeprecationWarning, match="mtls") as record:
12914+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
1291512915
with mock.patch.object(google.auth, 'default') as adc:
1291612916
adc.return_value = (cred, None)
1291712917
transport = transport_class(

tests/integration/goldens/logging_internal/tests/unit/gapic/logging_v2/test_logging_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3459,7 +3459,7 @@ def test_logging_service_v2_transport_channel_mtls_with_client_cert_source(
34593459
grpc_create_channel.return_value = mock_grpc_channel
34603460

34613461
cred = ga_credentials.AnonymousCredentials()
3462-
with pytest.warns(DeprecationWarning, match="mtls") as record:
3462+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
34633463
with mock.patch.object(google.auth, 'default') as adc:
34643464
adc.return_value = (cred, None)
34653465
transport = transport_class(

tests/integration/goldens/logging_internal/tests/unit/gapic/logging_v2/test_metrics_service_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ def test_metrics_service_v2_transport_channel_mtls_with_client_cert_source(
32633263
grpc_create_channel.return_value = mock_grpc_channel
32643264

32653265
cred = ga_credentials.AnonymousCredentials()
3266-
with pytest.warns(DeprecationWarning, match="mtls") as record:
3266+
with pytest.warns(DeprecationWarning, match="client_cert") as record:
32673267
with mock.patch.object(google.auth, 'default') as adc:
32683268
adc.return_value = (cred, None)
32693269
transport = transport_class(

0 commit comments

Comments
 (0)