Skip to content

Commit

Permalink
extend test for rotating prefixes
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Jan 8, 2018
1 parent 7c3db54 commit cf915b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/user_ldap/tests/Jobs/SyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function runDataProvider() {
'expectedNextCycle' => ['prefix' => '', 'offset' => '0'],
'mappedUsers' => 123,
]],
#0 - 2 LDAP servers, next prefix
#1 - 2 LDAP servers, next prefix
[[
'prefixes' => ['', 's01'],
'scheduledCycle' => ['prefix' => '', 'offset' => '4500'],
Expand All @@ -274,6 +274,15 @@ public function runDataProvider() {
'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,
]],
];
}

Expand Down

0 comments on commit cf915b0

Please sign in to comment.