mirror of
https://github.com/corda/corda.git
synced 2025-02-15 23:22:54 +00:00
Fixed failing tests
This commit is contained in:
parent
845a72cf5b
commit
fb6e727481
@ -15,7 +15,6 @@ import net.corda.core.crypto.Crypto.generateKeyPair
|
|||||||
import net.corda.core.crypto.SignatureScheme
|
import net.corda.core.crypto.SignatureScheme
|
||||||
import net.corda.core.crypto.newSecureRandom
|
import net.corda.core.crypto.newSecureRandom
|
||||||
import net.corda.core.identity.CordaX500Name
|
import net.corda.core.identity.CordaX500Name
|
||||||
import net.corda.core.internal.JavaVersion
|
|
||||||
import net.corda.core.internal.div
|
import net.corda.core.internal.div
|
||||||
import net.corda.core.serialization.SerializationContext
|
import net.corda.core.serialization.SerializationContext
|
||||||
import net.corda.core.serialization.deserialize
|
import net.corda.core.serialization.deserialize
|
||||||
@ -120,7 +119,7 @@ class X509UtilitiesTest {
|
|||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
fun `create valid self-signed CA certificate`() {
|
fun `create valid self-signed CA certificate`() {
|
||||||
Crypto.supportedSignatureSchemes().filter { it != COMPOSITE_KEY
|
Crypto.supportedSignatureSchemes().filter { it != COMPOSITE_KEY
|
||||||
&& ( !JavaVersion.isVersionAtLeast(JavaVersion.Java_11) || it != SPHINCS256_SHA256)}.forEach { validSelfSignedCertificate(it) }
|
&& ( it != SPHINCS256_SHA256)}.forEach { validSelfSignedCertificate(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun validSelfSignedCertificate(signatureScheme: SignatureScheme) {
|
private fun validSelfSignedCertificate(signatureScheme: SignatureScheme) {
|
||||||
@ -155,7 +154,7 @@ class X509UtilitiesTest {
|
|||||||
|
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
fun `create valid server certificate chain`() {
|
fun `create valid server certificate chain`() {
|
||||||
certChainSchemeCombinations.filter{ !JavaVersion.isVersionAtLeast(JavaVersion.Java_11) || it.first != SPHINCS256_SHA256 }
|
certChainSchemeCombinations.filter{ it.first != SPHINCS256_SHA256 }
|
||||||
.forEach { createValidServerCertChain(it.first, it.second) }
|
.forEach { createValidServerCertChain(it.first, it.second) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user