summaryrefslogtreecommitdiff
path: root/src/couch_peruser
Commit message (Collapse)AuthorAgeFilesLines
* Fix couch peruser test suite (#1247)Eric Avdey2018-03-281-74/+65
| | | | | | | | | | | | | | * Fix binary optimization warning * Use proper config delete in couch_peruser_test * Fix weird spacing * Use test_util's wait in tests instead of custom one * Remove obsolete constant * Make get_security to wait for proper sec object
* Remove _config call in couch_peruser_testjiangphcn2018-03-221-4/+1
| | | | Fixes #876
* Make peruser database prefix configurablejiangphcn2018-01-232-19/+101
| | | | Fixes #876
* Fix couch_peruser_testEric Avdey2018-01-151-22/+45
| | | | | Fix a random mashup of test object generators with normal assertions.
* Make q configurable for peruser dbsjiangphcn2017-12-082-16/+64
| | | | issue 875
* fix(peruser_test): on slow CI vms, we can get Cluster timeoutsJan Lehnardt2017-10-291-10/+24
|
* fix: peruser tests: use spinlocks instead of timer:sleep()Jan Lehnardt2017-10-271-18/+74
|
* Make couch_peruser a proper Erlang app (#756)Russell Branca2017-10-106-82/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make couch_peruser a proper Erlang app * Start and stop couch_peruser in the test suite * feat: mango test runner: do not rely on timeout for CouchDB start alone On slow build nodes, 10 seconds might not be enough of a wait. * Ensure a user creation is handlined on one node only This patch makes use of the mechanism that ensures that replications are only run on one node. When the cluster has nodes added/removed all changes listeners are restarted. * track cluster state in gen_server state and get notfied from mem3 directly * move couch_replication_clustering:owner/3 to mem3.erl * remove reliance on couch_replicator_clustering, handle cluster state internally * make sure peruser listeners are only initialised once per node * add type specs * fix tests * simplify couch_persuer.app definition * add registered modules * remove leftover code from olde notification system * s/clusterState/state/ && s/state/changes_state/ * s,init/0,init_state/0, * move function declaration around for internal consistency * whitespace * update README * document ini entries * unlink changes listeners before exiting them so we survive * fix state call * fix style * fix state * whitespace and more state fixes * 80 cols Closes #749
* fix: use the right values for assertionsfix/peruser-testJan Lehnardt2017-07-221-2/+2
|
* fix: return all generator asserts, so they all runJan Lehnardt2017-07-221-12/+20
|
* chore: remove debugging lineJan Lehnardt2017-07-221-1/+0
|
* Revert "Fix couch_peruser EUnit test"Jan Lehnardt2017-07-221-32/+28
| | | | This reverts commit 4b63ba898562382e48a1899af5efa3cb77bda1d7.
* Fix couch_peruser EUnit testJoan Touzet2017-07-211-28/+32
| | | | | | | | The test was repeatedly creating/deleting the exact same DB name, which is a recipe for disaster. Changed to use unique DB names. Closes #705.
* feat: update for 2.0 patch by @guillettJan Lehnardt2017-07-163-39/+57
| | | | https://github.com/apache/couchdb-peruser/pull/3
* Make sure we cache admin pass prior to test runILYA Khlopotov2017-05-251-1/+2
| | | | | | | | couch_server is responsible for calling hash_admin_passwords whenever "admin" section of config changes. However as you can see it from [here](https://github.com/apache/couchdb/blob/master/src/couch/src/couch_server.erl#L219) the call is asynchronous. This means that our test cases might fail when we try to using admin user while admin password is not yet hashed.
* Add 'src/couch_peruser/' from commit '4eea9571171a5b41d832da32204a1122a01f4b0e'Jan Lehnardt2017-04-017-0/+767
git-subtree-dir: src/couch_peruser git-subtree-mainline: f5bcdb20a6317f8a11debe1a2a40dc6b6768b613 git-subtree-split: 4eea9571171a5b41d832da32204a1122a01f4b0e