mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Legal name validation for X500Name (#983)
* * Legal name validation for X500Name while loading from config file. * * Removed unintended changes.
This commit is contained in:
@ -30,7 +30,7 @@ import java.util.concurrent.atomic.AtomicInteger
|
||||
class P2PMessagingTest : NodeBasedTest() {
|
||||
private companion object {
|
||||
val DISTRIBUTED_SERVICE_NAME = getTestX509Name("DistributedService")
|
||||
val SERVICE_2_NAME = getTestX509Name("Service Node 2")
|
||||
val SERVICE_2_NAME = getTestX509Name("Service 2")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -30,7 +30,7 @@ class P2PSecurityTest : NodeBasedTest() {
|
||||
|
||||
@Test
|
||||
fun `incorrect legal name for the network map service config`() {
|
||||
val incorrectNetworkMapName = X509Utilities.getDevX509Name(random63BitValue().toString())
|
||||
val incorrectNetworkMapName = X509Utilities.getDevX509Name("NetworkMap-${random63BitValue()}")
|
||||
val node = startNode(BOB.name, configOverrides = mapOf(
|
||||
"networkMapService" to mapOf(
|
||||
"address" to networkMapNode.configuration.p2pAddress.toString(),
|
||||
|
Reference in New Issue
Block a user