2012-05-25 00:59:17 +02:00
|
|
|
package akka.remote
|
|
|
|
|
|
|
|
|
|
import akka.testkit._
|
|
|
|
|
import akka.actor._
|
|
|
|
|
import com.typesafe.config._
|
|
|
|
|
import akka.actor.ExtendedActorSystem
|
|
|
|
|
import akka.util.duration._
|
|
|
|
|
import akka.util.Duration
|
|
|
|
|
import akka.remote.netty.NettyRemoteTransport
|
|
|
|
|
import java.util.ArrayList
|
|
|
|
|
|
|
|
|
|
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
|
|
|
|
class Ticket1978ConfigSpec extends AkkaSpec("""
|
|
|
|
|
akka {
|
|
|
|
|
actor.provider = "akka.remote.RemoteActorRefProvider"
|
|
|
|
|
remote.netty {
|
|
|
|
|
hostname = localhost
|
|
|
|
|
port = 12345
|
|
|
|
|
}
|
|
|
|
|
actor.deployment {
|
|
|
|
|
/blub.remote = "akka://remote-sys@localhost:12346"
|
|
|
|
|
/looker/child.remote = "akka://remote-sys@localhost:12346"
|
|
|
|
|
/looker/child/grandchild.remote = "akka://RemoteCommunicationSpec@localhost:12345"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
""") with ImplicitSender with DefaultTimeout {
|
|
|
|
|
|
|
|
|
|
"SSL Remoting" must {
|
|
|
|
|
"be able to parse these extra Netty config elements" in {
|
|
|
|
|
val settings =
|
|
|
|
|
system.asInstanceOf[ExtendedActorSystem]
|
|
|
|
|
.provider.asInstanceOf[RemoteActorRefProvider]
|
|
|
|
|
.transport.asInstanceOf[NettyRemoteTransport]
|
|
|
|
|
.settings
|
|
|
|
|
import settings._
|
|
|
|
|
|
|
|
|
|
EnableSSL must be(false)
|
|
|
|
|
SSLKeyStore must be(Some("keystore"))
|
|
|
|
|
SSLKeyStorePassword must be(Some("changeme"))
|
|
|
|
|
SSLTrustStore must be(Some("truststore"))
|
|
|
|
|
SSLTrustStorePassword must be(Some("changeme"))
|
|
|
|
|
SSLProtocol must be(Some("TLSv1"))
|
2012-06-15 18:05:02 +02:00
|
|
|
SSLSupportedAlgorithms must be(Set("TLS_RSA_WITH_AES_128_CBC_SHA"))
|
2012-06-05 13:44:05 +02:00
|
|
|
SSLRandomSource must be(None)
|
|
|
|
|
SSLRandomNumberGenerator must be(None)
|
2012-05-25 00:59:17 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|