Skip to content

Commit cf4a2a1

Browse files
committed
code coverage
1 parent 3b532a3 commit cf4a2a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

xds/src/test/java/io/grpc/xds/GrpcXdsClientImplDataTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,6 +3138,18 @@ public void validateCommonTlsContext_tlsNewCertificateProviderInstance()
31383138
.validateCommonTlsContext(commonTlsContext, ImmutableSet.of("name1", "name2"), true);
31393139
}
31403140

3141+
@Test
3142+
@SuppressWarnings("deprecation")
3143+
public void validateCommonTlsContext_tlsDeprecatedCertificateProviderInstance()
3144+
throws ResourceInvalidException {
3145+
CommonTlsContext commonTlsContext = CommonTlsContext.newBuilder()
3146+
.setTlsCertificateCertificateProviderInstance(
3147+
CommonTlsContext.CertificateProviderInstance.newBuilder().setInstanceName("name1"))
3148+
.build();
3149+
XdsClusterResource
3150+
.validateCommonTlsContext(commonTlsContext, ImmutableSet.of("name1", "name2"), true);
3151+
}
3152+
31413153
@Test
31423154
public void validateCommonTlsContext_tlsCertificateProviderInstance()
31433155
throws ResourceInvalidException {

0 commit comments

Comments
 (0)