projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: Refined channel-states, introduced `ChannelState` -- ALIGN
[demos/kafka/chat]
/
src
/
test
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
InMemoryWithMongoDbConfigurationIT.java
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java
b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java
index
abb0956
..
c7ede36
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java
@@
-15,9
+15,10
@@
import org.testcontainers.junit.jupiter.Testcontainers;
@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = {
@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = {
- "chat.backend.storage=mongodb",
"spring.data.mongodb.host=localhost",
"spring.data.mongodb.host=localhost",
- "spring.data.mongodb.database=test" })
+ "spring.data.mongodb.database=test",
+ "chat.backend.inmemory.sharding-strategy=none",
+ "chat.backend.inmemory.storage-strategy=mongodb" })
@Testcontainers
@Slf4j
class InMemoryWithMongoDbConfigurationIT extends AbstractConfigurationIT
@Testcontainers
@Slf4j
class InMemoryWithMongoDbConfigurationIT extends AbstractConfigurationIT
@@
-36,7
+37,7
@@
class InMemoryWithMongoDbConfigurationIT extends AbstractConfigurationIT
@DynamicPropertySource
static void addMongoPortProperty(DynamicPropertyRegistry registry)
{
@DynamicPropertySource
static void addMongoPortProperty(DynamicPropertyRegistry registry)
{
- registry.add("spring.data.mongodb.port", () -> CONTAINER.getMappedPort(
27017
));
+ registry.add("spring.data.mongodb.port", () -> CONTAINER.getMappedPort(
MONGODB_PORT
));
}
@BeforeEach
}
@BeforeEach