behackett
a33b0fce4d
Fix safe with auth for MongoDB >= 2.1.x PYTHON-371
...
The getLastError command requires authentication in
MongoDB 2.2. See the associated ticket for more
information.
2012-07-12 10:49:13 -07:00
Ross Lawley
a5432ea0f3
Add helper for aggregate command PYTHON-366
...
Added collection helper method.
Created an aggregation example covering:
* aggregate
* map reduce
* group
2012-07-12 09:43:55 +01:00
A. Jesse Jiryu Davis
354473c35e
Fix test_max_pool_size for Gevent
2012-07-05 22:59:12 -04:00
A. Jesse Jiryu Davis
776aabe9ec
More reliable test_max_pool_size
2012-07-04 23:31:03 -04:00
behackett
65bece6396
Get rid of a few weird timeout tests.
...
These never made much sense to me. They seem to
cause issues in CI and don't seem to be correct
either way.
2012-07-03 13:52:16 -07:00
behackett
1fe6029c5d
Fix replica set monitor issues PYTHON-365.
...
Note: In CPython the monitor is no longer a daemon thread. This means that
care must be taken in the interactive shell and simple scripts to set
ReplicaSetConnection references to None so the monitor dies.
The monitor is still a daemon thread in Jython and PyPy.
2012-07-03 12:56:01 -07:00
behackett
d21a98aeda
Fix test failure due to 2.1.2 behaviour change.
...
See SERVER-6226 for more information.
2012-07-03 11:06:41 -07:00
A. Jesse Jiryu Davis
c64d7cb8aa
Larger timeout for slower machines
2012-07-01 22:24:33 -04:00
A. Jesse Jiryu Davis
6e53caa42d
Remove dead test code
2012-07-01 22:23:56 -04:00
System Administrator
91814c1946
Gevent 1.0 compatibility in unittests
2012-06-26 14:53:20 -04:00
A. Jesse Jiryu Davis
00cf0c8071
Proper cleanup after TestCollection.test_large_limit
2012-06-18 11:34:47 -05:00
A. Jesse Jiryu Davis
e1bde1bed9
More rational and reliable test_max_pool_size, especially with Gevent
2012-06-12 15:32:09 -04:00
A. Jesse Jiryu Davis
97385ca542
Fix potential race conditions in test_collection PYTHON-357
2012-06-12 15:31:59 -04:00
A. Jesse Jiryu Davis
eeef9179ec
Fix connection leak in mod_wsgi 2.x and Python <= 2.6: Instead of storing SocketInfos in threadlocals, watch for thread death with a weakref callback to a generic threadlocal PYTHON-353
2012-06-12 10:05:37 -04:00
A. Jesse Jiryu Davis
58b3d646bd
Debug occasionally-failing test_large_limit
2012-06-10 00:04:16 -04:00
A. Jesse Jiryu Davis
f2cd5c6f2b
Slightly refactor threading tests
2012-04-29 21:34:05 -04:00
Bernie Hackett
e83ad81522
Fix test for older mongod versions.
2012-04-29 13:10:57 -07:00
A. Jesse Jiryu Davis
ac0ccc683a
More reliable connection-pool test
2012-04-26 17:50:20 -04:00
A. Jesse Jiryu Davis
a5761ff266
Skip test that fails due to SERVER-2329
2012-04-24 23:39:25 -04:00
A. Jesse Jiryu Davis
1ee89a1fe9
Fix test bug.
2012-04-24 14:55:01 -04:00
A. Jesse Jiryu Davis
a4996f3754
More reliable socket-reclamation tests, especially on Windows
2012-04-23 21:06:36 -04:00
A. Jesse Jiryu Davis
326b710382
More reliable multithread tests on slow machines
2012-04-23 15:23:20 -04:00
A. Jesse Jiryu Davis
5108100457
Ensure all test threads are daemonic, attempt a more reliable Master Slave test_kill_cursor_explicit
2012-04-21 14:28:46 -04:00
A. Jesse Jiryu Davis
839d3af512
Daemonize threads used in tests so failed test won't hang process
2012-04-21 07:13:06 -06:00
A. Jesse Jiryu Davis
2a8568162c
test_large_limit debugging
2012-04-21 07:05:07 -06:00
A. Jesse Jiryu Davis
770cde3e48
test_large_limit debugging
2012-04-21 06:54:08 -06:00
A. Jesse Jiryu Davis
f293acdf42
Pooling-test fix
2012-04-20 22:07:45 -04:00
behackett
19792227f8
Minor test_replica_set fixes.
2012-04-19 20:20:16 -07:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
A. Jesse Jiryu Davis
3abf8756e7
Master-slave test fix
2012-04-19 08:24:45 -04:00
Bernie Hackett
b3e7054107
Disallow NULL in database names PYTHON-342
2012-04-18 08:36:34 -07:00
A. Jesse Jiryu Davis
743a4bf531
Test fixes and cleanup
2012-04-18 11:04:46 -04:00
A. Jesse Jiryu Davis
b96dad0023
Debugging master-slave test_kill_cursor_explicit()
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
58305e6f0b
More lenient thread-reclamation test, more rigorous cursor-close test
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
3a64665542
Try to debug intermittent error in test_kill_cursor_explicit for master-slave connections.
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
3fe49f0e06
Cleanup
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
c44746ceb4
Python 3 compatibility for replica tests
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
c4dd702143
Fix up tests for Python pre-2.7 PYTHON-345
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
f9380a08cf
Skip test that's unreliable in PyPy
2012-04-17 22:05:05 -04:00
A. Jesse Jiryu Davis
1def725f4a
PYTHON-345 don't reuse request sockets after the pool is reset
2012-04-16 16:53:38 -04:00
A. Jesse Jiryu Davis
266b3e97fa
Fix kill-cursors tests and remove redundant tests
2012-04-16 14:13:07 -04:00
A. Jesse Jiryu Davis
19cad6f2e2
ReplicaSetConnection can monitor set health with Greenlet instead of thread, update replica tests for greenlets and fix timing issues PYTHON-296
2012-04-16 14:13:01 -04:00
A. Jesse Jiryu Davis
c9c9eeec21
Refactor pooling tests - nearly all tests are now applied both to thread-based and Gevent-based pools PYTHON-296
2012-04-16 14:10:27 -04:00
A. Jesse Jiryu Davis
b4e42a769e
Precisely enforce max_pool_size: unittest
2012-04-14 11:07:23 -04:00
A. Jesse Jiryu Davis
779402c9e5
Fix timing issue in pool test
2012-04-11 16:47:36 -04:00
A. Jesse Jiryu Davis
ef41f16982
Merge pull request #128 from ajdavis/PYTHON-344
...
Bugfixes: Pool properly discards sockets if it detects they've died PYTHON-344
2012-04-09 10:20:03 -07:00
behackett
6ecb615d0e
Fix a test failure.
2012-04-06 13:16:00 -07:00
behackett
5d0afa51c9
Fix gevent tests in Python 3.
2012-04-06 11:53:18 -07:00
A. Jesse Jiryu Davis
ddbc8464f3
Don't use multiprocessing in tests on Windows
2012-04-06 13:34:23 -04:00
A. Jesse Jiryu Davis
d0b5b2765f
Try to diagnose intermittent failure in tests on Jenkins
2012-04-06 13:12:48 -04:00