aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-18 17:22:02 +0200
committerLouis <louis@chmn.me>2024-08-28 14:54:14 +0200
commit22f76fca59dc9cb0681ce5d9de1c9ef0486b45df (patch)
tree8845659505d0884a34f16944e4c6ce303fd4ba32 /tests
parent3e5193957b7fa0fc913ca470d66818325569c0ef (diff)
downloadnextcloud-server-22f76fca59dc9cb0681ce5d9de1c9ef0486b45df.tar.gz
nextcloud-server-22f76fca59dc9cb0681ce5d9de1c9ef0486b45df.zip
test: run sharding tests in ci
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/preseed-config.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/preseed-config.php b/tests/preseed-config.php
index 3739335676a..7c341278027 100644
--- a/tests/preseed-config.php
+++ b/tests/preseed-config.php
@@ -78,3 +78,24 @@ if (getenv('OBJECT_STORE') === 's3') {
]
];
}
+
+if (getenv('SHARDING') == '1') {
+ $CONFIG['dbsharding'] = [
+ "filecache" => [
+ "shards" => [
+ [
+ "port" => 5001,
+ ],
+ [
+ "port" => 5002,
+ ],
+ [
+ "port" => 5003,
+ ],
+ [
+ "port" => 5004,
+ ],
+ ]
+ ]
+ ];
+}