mirror of
https://github.com/google/nomulus
synced 2026-01-08 15:21:46 +00:00
Use CA cert in tests (#475)
* Use CA cert in tests Our tests were using a self-signed cert created by a netty utility. That cert is not CA, and cannot be used with newer JDK versions (starting from u242 with Ubuntu openjdk). Now we generate a unsafe cert for tests. The new cert, SelfSignedCaCertificate, needs to be made test-only. To do so we need to refactor both prober and proxy.
This commit is contained in:
@@ -41,12 +41,6 @@ dependencies {
|
||||
testAnnotationProcessor deps['com.google.dagger:dagger-compiler']
|
||||
}
|
||||
|
||||
test {
|
||||
// Temporarily allow non-CA cert as trust anchor (legacy behavior) in tests.
|
||||
// TODO(weiminyu): generate test cert as a CA cert.
|
||||
systemProperty 'jdk.security.allowNonCaAnchor', 'true'
|
||||
}
|
||||
|
||||
// Make testing artifacts available to be depended up on by other projects.
|
||||
task testJar(type: Jar) {
|
||||
classifier = 'test'
|
||||
|
||||
Reference in New Issue
Block a user