Allow non-CA cert as trust anchor in tests (#468)

* Allow non-CA cert as trust anchor in tests

Stay with the legacy behavior to unblock release build.
We will update the test cert generation code later.

TESTED=reproduced and fixed test failures in builder container
This commit is contained in:
Weimin Yu 2020-02-03 11:02:52 -05:00 committed by GitHub
parent ce2f98f680
commit 36e46097e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,12 @@ 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'