summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-5/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated OCP\User::getDisplaynameRoeland Jago Douma2018-03-251-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated \OCP\User::getUsersRoeland Jago Douma2018-03-251-5/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* treat iconv issuesArthur Schiwon2018-03-051-1/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not create empty userid when attribute does not have allowed charsArthur Schiwon2018-03-021-0/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* tests for retrieving group members with numerical uidsArthur Schiwon2018-02-231-2/+85
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* track the state of the bind resultArthur Schiwon2018-02-221-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* OC_App::loadApps now only accepts an array as type listMorris Jobke2018-02-171-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix risky tests without assertionsJoas Schilling2018-01-251-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-6/+18
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated functions for OCP\UtilRoeland Jago Douma2018-01-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix return value when ldapPagingSize returns nullArthur Schiwon2018-01-111-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* when paged results are turned off, all (max possible) users are returnedArthur Schiwon2018-01-111-1/+2
| | | | | | thus hasMoreResult should return false Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extend test for rotating prefixesArthur Schiwon2018-01-081-1/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add tests for whole run commandArthur Schiwon2018-01-081-0/+104
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add unit test for qualifies to runArthur Schiwon2018-01-081-3/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add unit test for determining next cycleArthur Schiwon2018-01-081-0/+41
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* create failing test for this caseArthur Schiwon2018-01-051-0/+55
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* removes invalid tests, adapts another oneArthur Schiwon2018-01-031-4/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't cache user, if no internal user id was retrieved/assignedArthur Schiwon2017-12-071-0/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure that users are cached when they are retrievedArthur Schiwon2017-12-071-0/+116
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixed indentationsidey792017-11-101-1/+1
| | | | | | Fixed indentation of this pr Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixed typo from last commitsidey792017-11-101-1/+1
| | | | | | Fixed typo in getAppValue mocket method from last commit Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update testUpdateNoRefreshsidey792017-11-101-1/+8
| | | | | | Mocked getAppValue to deliver a value of 1800 when updateAttributesInterval is requested by needsRefresh. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* resolve DIArthur Schiwon2017-11-093-42/+41
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix unit tests after rebaseArthur Schiwon2017-11-092-48/+67
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add Sync testArthur Schiwon2017-11-091-0/+130
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2017-11-095-403/+413
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't skip updating when ajax is set as background job modeArthur Schiwon2017-11-092-5/+75
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move ldap user sync to background (WIP)Arthur Schiwon2017-11-091-91/+116
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0629-51/+115
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* User_LDAP plugins: smaller fixesVinicius Cubas Brand2017-11-035-25/+77
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-0314-127/+1707
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* Use ::class in test mocksMorris Jobke2017-10-242-4/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6677 from nextcloud/downstream-dont-reset-quotaLukas Reschke2017-10-191-15/+10
|\ | | | | don't reset quota
| * Adjust unittestJuan Pablo Villafáñez2017-09-281-15/+10
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix testArthur Schiwon2017-09-291-1/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix LDAP User deletion (cleanup)Arthur Schiwon2017-09-299-60/+80
|/ | | | | | | | | discovered a bug in the integration test which lead to following a different code path and giving a false-positive success feedback. Also listens now to the evendispatcher instead of old hook system Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adapted integration testsArthur Schiwon2017-09-142-13/+35
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve and extend paging integration testArthur Schiwon2017-09-142-11/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix limit-flaw in search on paged resultsArthur Schiwon2017-09-141-4/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #5689 from nextcloud/fix-4117Morris Jobke2017-09-143-25/+137
|\ | | | | LDAP: simplify returning the homePath and fixing #4117
| * listen to deletion hooks for proper handling, adjust and add testsArthur Schiwon2017-08-313-25/+137
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #5466 from jlehtoranta/ldap-connectivity-fixesMorris Jobke2017-09-041-0/+98
|\ \ | |/ |/| LDAP Connectivity Fixes
| * LDAP: Add testStartTlsNegotiationFailure unit testJarkko Lehtoranta2017-07-231-0/+50
| | | | | | | | Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
| * LDAP: Add testBindWithInvalidCredentials unit testJarkko Lehtoranta2017-07-231-0/+44
| | | | | | | | Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
| * LDAP: Fix testUseBackupServer unit testJarkko Lehtoranta2017-07-231-0/+4
| | | | | | | | Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
* | Fix ldap testsRoeland Jago Douma2017-08-092-0/+11
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add convenience script to run all tests at onceArthur Schiwon2017-05-261-0/+34
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>