add reason param to quarantine method
This commit is contained in:
parent
9a7d79c882
commit
3b7a7dfa59
16 changed files with 28 additions and 23 deletions
|
|
@ -58,7 +58,7 @@ abstract class PiercingShouldKeepQuarantineSpec(multiNodeConfig: PiercingShouldK
|
|||
enterBarrier("actor-identified")
|
||||
|
||||
// Manually Quarantine the other system
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid))
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid), "test")
|
||||
|
||||
// Quarantining is not immediate
|
||||
Thread.sleep(1000)
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ abstract class RemoteQuarantinePiercingSpec(multiNodeConfig: RemoteQuarantinePie
|
|||
enterBarrier("actor-identified")
|
||||
|
||||
// Manually Quarantine the other system
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uidFirst))
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uidFirst), "test")
|
||||
|
||||
// Quarantine is up -- Cannot communicate with remote system any more
|
||||
system.actorSelection(RootActorPath(secondAddress) / "user" / "subject") ! "identify"
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ abstract class RemoteRestartedQuarantinedSpec
|
|||
|
||||
val (uid, ref) = identifyWithUid(second, "subject")
|
||||
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid))
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid), "test")
|
||||
|
||||
enterBarrier("quarantined")
|
||||
enterBarrier("still-quarantined")
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ abstract class RemoteRestartedQuarantinedSpec
|
|||
val (uid, ref) = identifyWithUid(second, "subject", 5.seconds)
|
||||
|
||||
enterBarrier("before-quarantined")
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid))
|
||||
RARP(system).provider.transport.quarantine(node(second).address, Some(uid), "test")
|
||||
|
||||
enterBarrier("quarantined")
|
||||
enterBarrier("still-quarantined")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue