@Setter
public static class InMemoryServicesProperties
{
- private ShardingStrategyType shardingStrategy = ShardingStrategyType.kafkalike;
- private int numShards = 10;
- private int[] ownedShards = { 2 };
+ private ShardingStrategyType shardingStrategy = ShardingStrategyType.none;
+ private int numShards = 1;
+ private int[] ownedShards = new int[] { 0 };
private StorageStrategyType storageStrategy = StorageStrategyType.files;
private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString();
}
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = {
"chat.backend.inmemory.storage-directory=target/test-classes/data/files",
- "chat.backend.inmemory.sharding-strategy=kafkalike" })
+ "chat.backend.inmemory.sharding-strategy=kafkalike",
+ "chat.backend.inmemory.num-shards=10",
+ "chat.backend.inmemory.owned-shards=2" })
class InMemoryWithFilesAndShardingConfigurationIT extends AbstractConfigurationIT
{
}