summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-08 13:46:07 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-08 13:46:07 +0100
commitcf915b0f754fa1558e31af96d42d825f7b0e8017 (patch)
tree898f8300c6abc5289fde7c9ec5f07341496752b2 /apps/user_ldap
parent7c3db54ff697920a7fc35c6454c0b7c407ec2aa4 (diff)
downloadnextcloud-server-cf915b0f754fa1558e31af96d42d825f7b0e8017.tar.gz
nextcloud-server-cf915b0f754fa1558e31af96d42d825f7b0e8017.zip
extend test for rotating prefixes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/tests/Jobs/SyncTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Jobs/SyncTest.php b/apps/user_ldap/tests/Jobs/SyncTest.php
index 62f15472138..f8852a46664 100644
--- a/apps/user_ldap/tests/Jobs/SyncTest.php
+++ b/apps/user_ldap/tests/Jobs/SyncTest.php
@@ -265,7 +265,7 @@ class SyncTest extends TestCase {
'expectedNextCycle' => ['prefix' => '', 'offset' => '0'],
'mappedUsers' => 123,
]],
- #0 - 2 LDAP servers, next prefix
+ #1 - 2 LDAP servers, next prefix
[[
'prefixes' => ['', 's01'],
'scheduledCycle' => ['prefix' => '', 'offset' => '4500'],
@@ -274,6 +274,15 @@ class SyncTest extends TestCase {
'expectedNextCycle' => ['prefix' => 's01', 'offset' => '0'],
'mappedUsers' => 123,
]],
+ #2 - 2 LDAP servers, rotate prefix
+ [[
+ 'prefixes' => ['', 's01'],
+ 'scheduledCycle' => ['prefix' => 's01', 'offset' => '4500'],
+ 'pagingSize' => 500,
+ 'usersThisCycle' => 0,
+ 'expectedNextCycle' => ['prefix' => '', 'offset' => '0'],
+ 'mappedUsers' => 123,
+ ]],
];
}