mirror of
https://github.com/corda/corda.git
synced 2025-01-28 15:14:48 +00:00
fix broken test after merge
This commit is contained in:
parent
1c77736d50
commit
970303dc2d
@ -126,10 +126,13 @@ class SigningServiceIntegrationTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
config.certificatesDirectory.createDirectories()
|
config.certificatesDirectory.createDirectories()
|
||||||
val trustStore = X509KeyStore.fromFile(config.trustStoreFile, config.trustStorePassword, createNew = true)
|
val networkTrustStorePath = config.certificatesDirectory / "network-root-truststore.jks"
|
||||||
trustStore.update {
|
val networkTrustStorePassword = "network-trust-password"
|
||||||
|
val networkTrustStore = X509KeyStore.fromFile(networkTrustStorePath, networkTrustStorePassword, createNew = true)
|
||||||
|
networkTrustStore.update {
|
||||||
setCertificate(X509Utilities.CORDA_ROOT_CA, rootCaCert)
|
setCertificate(X509Utilities.CORDA_ROOT_CA, rootCaCert)
|
||||||
}
|
}
|
||||||
|
val trustStore = X509KeyStore.fromFile(config.trustStoreFile, config.trustStorePassword, createNew = true)
|
||||||
val nodeKeyStore = X509KeyStore.fromFile(config.nodeKeystore, config.keyStorePassword, createNew = true)
|
val nodeKeyStore = X509KeyStore.fromFile(config.nodeKeystore, config.keyStorePassword, createNew = true)
|
||||||
val sslKeyStore = X509KeyStore.fromFile(config.sslKeystore, config.keyStorePassword, createNew = true)
|
val sslKeyStore = X509KeyStore.fromFile(config.sslKeystore, config.keyStorePassword, createNew = true)
|
||||||
config.also {
|
config.also {
|
||||||
@ -137,7 +140,7 @@ class SigningServiceIntegrationTest {
|
|||||||
doReturn(nodeKeyStore).whenever(it).loadNodeKeyStore(any())
|
doReturn(nodeKeyStore).whenever(it).loadNodeKeyStore(any())
|
||||||
doReturn(sslKeyStore).whenever(it).loadSslKeyStore(any())
|
doReturn(sslKeyStore).whenever(it).loadSslKeyStore(any())
|
||||||
}
|
}
|
||||||
NetworkRegistrationHelper(config, HTTPNetworkRegistrationService(config.compatibilityZoneURL!!)).buildKeystore()
|
NetworkRegistrationHelper(config, HTTPNetworkRegistrationService(config.compatibilityZoneURL!!), networkTrustStorePath, networkTrustStorePassword).buildKeystore()
|
||||||
verify(hsmSigner).sign(any())
|
verify(hsmSigner).sign(any())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user