mirror of https://github.com/apache/kafka.git
KAFKA-17555 uncomment all checks of testCommonNameLoggingTrustManagerMixValidAndInvalidCertificates (#17220)
Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
14c45bed5a
commit
e90b246002
|
@ -469,17 +469,17 @@ public class CommonNameLoggingTrustManagerFactoryWrapperTest {
|
|||
CommonNameLoggingTrustManager testTrustManager = new CommonNameLoggingTrustManager(origTrustManager, 2);
|
||||
|
||||
// Call with valid certificate
|
||||
//assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
// Call with invalid certificate
|
||||
assertThrows(CertificateException.class,
|
||||
() -> testTrustManager.checkClientTrusted(invalidChainWithoutCa, "RSA"));
|
||||
// Call with valid certificate again
|
||||
//assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
// Call with invalid certificate
|
||||
assertThrows(CertificateException.class,
|
||||
() -> testTrustManager.checkClientTrusted(invalidChainWithoutCa, "RSA"));
|
||||
// Call with valid certificate again
|
||||
//assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
assertDoesNotThrow(() -> testTrustManager.checkClientTrusted(validChainWithoutCa, "RSA"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue