test: Introduced integration-tests for `NoStorageStorageStrategy`
authorKai Moritz <kai@juplo.de>
Mon, 19 Feb 2024 10:01:13 +0000 (11:01 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 09:37:36 +0000 (10:37 +0100)
--
COPY

src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageAndShardingConfigurationIT.java [new file with mode: 0644]
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageConfigurationIT.java [new file with mode: 0644]

diff --git a/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageAndShardingConfigurationIT.java b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageAndShardingConfigurationIT.java
new file mode 100644 (file)
index 0000000..fd2866b
--- /dev/null
@@ -0,0 +1,16 @@
+package de.juplo.kafka.chat.backend;
+
+import org.springframework.boot.test.context.SpringBootTest;
+
+
+@SpringBootTest(
+    webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
+    properties = {
+        "chat.backend.inmemory.storage-strategy=files",
+        "chat.backend.inmemory.storage-directory=target/test-classes/data/files",
+        "chat.backend.inmemory.sharding-strategy=kafkalike",
+        "chat.backend.inmemory.num-shards=10",
+        "chat.backend.inmemory.owned-shards=2" })
+class InMemoryWithFilesAndShardingConfigurationIT extends AbstractConfigurationWithShardingIT
+{
+}
diff --git a/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageConfigurationIT.java b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageConfigurationIT.java
new file mode 100644 (file)
index 0000000..2ff9e11
--- /dev/null
@@ -0,0 +1,14 @@
+package de.juplo.kafka.chat.backend;
+
+import org.springframework.boot.test.context.SpringBootTest;
+
+
+@SpringBootTest(
+               webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
+               properties = {
+                               "chat.backend.inmemory.sharding-strategy=none",
+                               "chat.backend.inmemory.storage-strategy=files",
+                               "chat.backend.inmemory.storage-directory=target/test-classes/data/files" })
+class InMemoryWithFilesConfigurationIT extends AbstractConfigurationIT
+{
+}