-
Notifications
You must be signed in to change notification settings - Fork 214
/
test.conf
152 lines (121 loc) · 3.66 KB
/
test.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
ditto {
mongodb {
hostname = "localhost"
hostname = ${?DOCKER_HOST}
hostname = ${?MONGO_HOSTNAME}
port = 27017
port = ${?MONGO_PORT}
database = "test"
uri = "mongodb://"${?ditto.mongodb.authentication}${ditto.mongodb.hostname}":"${ditto.mongodb.port}"/"${ditto.mongodb.database}
options {
readPreference=secondary
writeConcern=majority
extra-uri-options {
sslInvalidHostNameAllowed=true
}
}
}
}
pekko {
loggers = ["org.apache.pekko.event.slf4j.Slf4jLogger"]
loglevel = "WARNING"
logging-filter = "org.apache.pekko.event.slf4j.Slf4jLoggingFilter"
# for log messages during the actor system is starting up and shutting down:
stdout-loglevel = "WARNING"
log-config-on-start = off
# disable coordinated shutdown for tests
coordinated-shutdown.terminate-actor-system = off
coordinated-shutdown.run-by-actor-system-terminate = off
actor {
provider = "org.apache.pekko.cluster.ClusterActorRefProvider"
enable-additional-serialization-bindings = on
# this is only intended for testing.
serialize-messages = off
serialize-creators = off
debug {
lifecycle = on
}
guardian-supervisor-strategy = "org.apache.pekko.actor.StoppingSupervisorStrategy"
deployment {
}
default-dispatcher {
fork-join-executor {
parallelism-min = 4
parallelism-factor = 3.0
parallelism-max = 32
parallelism-max = ${?DEFAULT_DISPATCHER_PARALLELISM_MAX}
}
}
}
remote {
log-remote-lifecycle-events = on
artery {
enabled = on
transport = tcp
}
artery.canonical {
hostname = "127.0.0.1"
port = 0
port = ${?RANDOM_TEST_PORT}
}
}
cluster {
metrics.enabled = off
seed-nodes = ["pekko://PekkoTestSystem@"${pekko.remote.artery.canonical.hostname}":"${pekko.remote.artery.canonical.port}]
roles = [
]
}
test {
# factor by which to scale timeouts during tests, e.g. to account for shared
# build system load
timefactor = 1.0
# duration of EventFilter.intercept waits after the block is finished until
# all required messages are received
filter-leeway = 3s
# duration to wait in expectMsg and friends outside of within() block
# by default
single-expect-default = 3s
# The timeout that is added as an implicit by DefaultTimeout trait
default-timeout = 5s
calling-thread-dispatcher {
type = org.apache.pekko.testkit.CallingThreadDispatcherConfigurator
}
}
persistence {
journal.auto-start-journals = [
"pekko-contrib-mongodb-persistence-test-journal"
]
snapshot-store.auto-start-snapshot-stores = [
"pekko-contrib-mongodb-persistence-test-snapshots"
]
}
}
// TODO inMemory
pekko-contrib-mongodb-persistence-test-journal {
class = "akka.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
ask-timeout = 10s
overrides {
journal-collection = "test_journal"
journal-index = "test_journal_index"
realtime-collection = "test_realtime"
metadata-collection = "test_metadata"
}
event-adapter-bindings {
"org.eclipse.ditto.base.model.signals.events.Event" = mongodbobject
"org.bson.BsonValue" = mongodbobject
}
}
pekko-contrib-mongodb-persistence-test-journal-read {
class = "pekko.contrib.persistence.mongodb.MongoReadJournal"
overrides {
journal-collection = "test_journal"
journal-index = "test_journal_index"
realtime-collection = "test_realtime"
metadata-collection = "test_metadata"
}
}
//TODO inMemory
pekko-contrib-mongodb-persistence-test-snapshots {
class = "akka.persistence.inmemory.snapshot.InMemorySnapshotStore"
ask-timeout = 10s
}