From: Kai Moritz Date: Mon, 19 Feb 2024 10:01:13 +0000 (+0100) Subject: test: Introduced integration-tests for `NoStorageStorageStrategy` X-Git-Tag: rebase--2024-02-20--09-03~9 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7faf1856e0ec47b0e5bff02515ff068d84b82ead;p=demos%2Fkafka%2Fchat test: Introduced integration-tests for `NoStorageStorageStrategy` -- COPY --- 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 index 00000000..fd2866b5 --- /dev/null +++ b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageAndShardingConfigurationIT.java @@ -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 index 00000000..2ff9e111 --- /dev/null +++ b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithNoStorageConfigurationIT.java @@ -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 +{ +}