serialize-creators=off in tests, #23003
This commit is contained in:
parent
110dcdc916
commit
edef9e34c7
15 changed files with 2 additions and 45 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = on
|
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = off
|
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = on
|
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = on
|
|
||||||
serialize-messages = off
|
serialize-messages = off
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
package akka.cluster
|
|
||||||
|
|
||||||
import akka.testkit.AkkaSpec
|
|
||||||
|
|
||||||
class SerializeCreatorsVerificationSpec extends AkkaSpec {
|
|
||||||
|
|
||||||
"serialize-creators should be on" in {
|
|
||||||
system.settings.SerializeAllCreators should ===(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -26,7 +26,6 @@ object ReplicatorMapDeltaSpec extends MultiNodeConfig {
|
||||||
akka.log-dead-letters-during-shutdown = off
|
akka.log-dead-letters-during-shutdown = off
|
||||||
akka.actor {
|
akka.actor {
|
||||||
serialize-messages = off
|
serialize-messages = off
|
||||||
serialize-creators = off
|
|
||||||
allow-java-serialization = off
|
allow-java-serialization = off
|
||||||
}
|
}
|
||||||
"""))
|
"""))
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ object ReplicatorORSetDeltaSpec extends MultiNodeConfig {
|
||||||
akka.log-dead-letters-during-shutdown = off
|
akka.log-dead-letters-during-shutdown = off
|
||||||
akka.actor {
|
akka.actor {
|
||||||
serialize-messages = off
|
serialize-messages = off
|
||||||
serialize-creators = off
|
|
||||||
allow-java-serialization = off
|
allow-java-serialization = off
|
||||||
}
|
}
|
||||||
"""))
|
"""))
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka.actor {
|
akka.actor {
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
serialize-creators = on
|
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ class ReplicatedDataSerializerSpec extends TestKit(ActorSystem(
|
||||||
akka.remote.artery.canonical.port = 0
|
akka.remote.artery.canonical.port = 0
|
||||||
akka.actor {
|
akka.actor {
|
||||||
serialize-messages = off
|
serialize-messages = off
|
||||||
serialize-creators = off
|
|
||||||
allow-java-serialization = off
|
allow-java-serialization = off
|
||||||
}
|
}
|
||||||
"""))) with WordSpecLike with Matchers with BeforeAndAfterAll {
|
"""))) with WordSpecLike with Matchers with BeforeAndAfterAll {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ class ReplicatorMessageSerializerSpec extends TestKit(ActorSystem(
|
||||||
akka.remote.artery.canonical.port = 0
|
akka.remote.artery.canonical.port = 0
|
||||||
akka.actor {
|
akka.actor {
|
||||||
serialize-messages = off
|
serialize-messages = off
|
||||||
serialize-creators = off
|
|
||||||
allow-java-serialization = off
|
allow-java-serialization = off
|
||||||
}
|
}
|
||||||
"""))) with WordSpecLike with Matchers with BeforeAndAfterAll {
|
"""))) with WordSpecLike with Matchers with BeforeAndAfterAll {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = on
|
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,9 @@ import akka.testkit.AkkaSpec
|
||||||
|
|
||||||
class SerializationChecksSpec extends AkkaSpec {
|
class SerializationChecksSpec extends AkkaSpec {
|
||||||
|
|
||||||
"Settings serialize-messages and serialize-creators" must {
|
"Settings serialize-messages" must {
|
||||||
|
|
||||||
"be on for tests" in {
|
"be on for tests" in {
|
||||||
system.settings.SerializeAllCreators should ===(true)
|
|
||||||
system.settings.SerializeAllMessages should ===(true)
|
system.settings.SerializeAllMessages should ===(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
akka {
|
akka {
|
||||||
actor {
|
actor {
|
||||||
serialize-creators = on
|
|
||||||
serialize-messages = on
|
serialize-messages = on
|
||||||
warn-about-java-serializer-usage = off
|
warn-about-java-serializer-usage = off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,9 @@ import akka.testkit.AkkaSpec
|
||||||
|
|
||||||
class SerializationChecksPlainRemotingSpec extends AkkaSpec {
|
class SerializationChecksPlainRemotingSpec extends AkkaSpec {
|
||||||
|
|
||||||
"Settings serialize-messages and serialize-creators" must {
|
"Settings serialize-messages" must {
|
||||||
|
|
||||||
"be on for tests" in {
|
"be on for tests" in {
|
||||||
system.settings.SerializeAllCreators should ===(true)
|
|
||||||
system.settings.SerializeAllMessages should ===(true)
|
system.settings.SerializeAllMessages should ===(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
package akka.remote
|
|
||||||
|
|
||||||
import akka.testkit.AkkaSpec
|
|
||||||
|
|
||||||
class SerializeCreatorsVerificationSpec extends AkkaSpec {
|
|
||||||
|
|
||||||
"serialize-creators should be on" in {
|
|
||||||
system.settings.SerializeAllCreators should ===(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue