mirror of
https://github.com/corda/corda.git
synced 2025-02-18 16:40:55 +00:00
DrainingMode integration tests - explicit node names, changed column names of a test table. (#2879)
Align DrainingMode integration tests (related to CORDA-1243) with Enterprise repo.
This commit is contained in:
parent
e43b12c203
commit
4269e4a02e
@ -40,10 +40,10 @@ object MessageSchemaV1 : MappedSchema(
|
||||
@Entity
|
||||
@Table(name = "messages")
|
||||
class PersistentMessage(
|
||||
@Column(name = "by")
|
||||
@Column(name = "message_by")
|
||||
var by: String,
|
||||
|
||||
@Column(name = "value")
|
||||
@Column(name = "message_value")
|
||||
var value: String
|
||||
) : PersistentState()
|
||||
}
|
||||
|
@ -18,6 +18,8 @@ import net.corda.core.utilities.unwrap
|
||||
import net.corda.RpcInfo
|
||||
import net.corda.client.rpc.CordaRPCClient
|
||||
import net.corda.node.services.Permissions.Companion.all
|
||||
import net.corda.testing.core.ALICE_NAME
|
||||
import net.corda.testing.core.BOB_NAME
|
||||
import net.corda.testing.core.singleIdentity
|
||||
import net.corda.testing.driver.DriverParameters
|
||||
import net.corda.testing.driver.PortAllocation
|
||||
@ -55,8 +57,8 @@ class FlowsDrainingModeContentionTest {
|
||||
|
||||
driver(DriverParameters(isDebug = true, startNodesInProcess = true, portAllocation = portAllocation, extraCordappPackagesToScan = listOf(MessageState::class.packageName))) {
|
||||
|
||||
val nodeA = startNode(rpcUsers = users).getOrThrow()
|
||||
val nodeB = startNode(rpcUsers = users).getOrThrow()
|
||||
val nodeA = startNode(providedName = ALICE_NAME, rpcUsers = users).getOrThrow()
|
||||
val nodeB = startNode(providedName = BOB_NAME, rpcUsers = users).getOrThrow()
|
||||
defaultNotaryNode.getOrThrow()
|
||||
|
||||
val nodeARpcInfo = RpcInfo(nodeA.rpcAddress, user.username, user.password)
|
||||
|
@ -10,6 +10,8 @@ import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.core.utilities.loggerFor
|
||||
import net.corda.core.utilities.unwrap
|
||||
import net.corda.node.services.Permissions
|
||||
import net.corda.testing.core.ALICE_NAME
|
||||
import net.corda.testing.core.BOB_NAME
|
||||
import net.corda.testing.core.singleIdentity
|
||||
import net.corda.testing.driver.DriverParameters
|
||||
import net.corda.testing.driver.PortAllocation
|
||||
@ -53,8 +55,8 @@ class P2PFlowsDrainingModeTest {
|
||||
|
||||
driver(DriverParameters(isDebug = true, startNodesInProcess = false, portAllocation = portAllocation)) {
|
||||
|
||||
val initiatedNode = startNode().getOrThrow()
|
||||
val initiating = startNode(rpcUsers = users).getOrThrow().rpc
|
||||
val initiatedNode = startNode(providedName = ALICE_NAME).getOrThrow()
|
||||
val initiating = startNode(providedName = BOB_NAME, rpcUsers = users).getOrThrow().rpc
|
||||
val counterParty = initiatedNode.nodeInfo.singleIdentity()
|
||||
val initiated = initiatedNode.rpc
|
||||
|
||||
@ -85,8 +87,8 @@ class P2PFlowsDrainingModeTest {
|
||||
|
||||
driver(DriverParameters(isDebug = true, startNodesInProcess = true, portAllocation = portAllocation)) {
|
||||
|
||||
val nodeA = startNode(rpcUsers = users).getOrThrow()
|
||||
val nodeB = startNode(rpcUsers = users).getOrThrow()
|
||||
val nodeA = startNode(providedName = ALICE_NAME, rpcUsers = users).getOrThrow()
|
||||
val nodeB = startNode(providedName = BOB_NAME, rpcUsers = users).getOrThrow()
|
||||
var successful = false
|
||||
val latch = CountDownLatch(1)
|
||||
nodeB.rpc.setFlowsDrainingModeEnabled(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user