Tyler Brock
92af319412
minor: test cleanup
2012-04-04 13:51:04 -04:00
Tyler Brock
e9e0e47cc1
minor: test cleanup and fixes
2012-04-03 16:06:37 -04:00
Tyler Brock
01f28b47ff
RUBY-429 non-blocking IO for socket timeouts
...
Should greatly improve performance for highly threaded applications
using connection and operation timeouts.
2012-04-03 16:06:37 -04:00
Tyler Brock
aab3cf7b74
minor: cleanup thread_to_socket pruning code and test
2012-04-03 16:06:37 -04:00
Gary Murakami
481c57c52e
fix bson test hash_with_indifferent_access, missing require
2012-03-30 11:47:06 -04:00
Tyler Brock
0e8eef6cdd
RUBY-420 enforce lower bound on refresh interval
2012-03-21 19:01:37 -04:00
Tyler Brock
6944794fb2
RUBY-422 Cleanup testing output
2012-03-16 16:17:33 -04:00
Tyler Brock
ec86275b60
RUBY-424 Authenticating with only secondary fails
...
Authentication command now prefers to use primary node but will fall
back on secondary if no primary is available
2012-03-15 13:50:02 -04:00
Tyler Brock
2af817f0f8
minor: fix for refresh with threads test and rs documentation updates
2012-03-07 16:38:14 -05:00
Tyler Brock
0ae757c69b
RUBY-416 unit test stub fix
2012-03-07 12:38:04 -05:00
Tyler Brock
8c3283f514
minor: switched additional tests to socket mock
2012-03-06 22:56:39 -05:00
Tyler Brock
68f19039d2
minor: updates for replica set tests, mock socket stubs
2012-03-06 17:06:42 -05:00
Tyler Brock
379c831b8b
minor: test fix for mocha 0.10.5 -- new initializer
2012-03-01 13:03:52 -05:00
Kyle Banker
ebfe279784
Fixed threaded replica set reconnection.
2012-02-27 17:13:57 -05:00
Tyler Brock
6301a41254
minor: whitespace
2012-02-27 16:42:48 -05:00
Kyle Banker
29cc4b20e2
RUBY-416 thread affinity for Mongo::Pool
2012-02-27 16:16:09 -05:00
Tyler Brock
8e64c74d7d
RUBY-239 warn if bad options are passed to connection constructors
2012-02-27 14:06:07 -05:00
Tyler Brock
c802c7eba3
minor: fixes for tests in Ruby 1.8.7
2012-02-18 19:24:27 -05:00
Tyler Brock
8db4eb771f
RUBY-378: fixed documentation and tests for new ReplSetConnection seed format
...
Added helper method #build_seeds to rs_test_helper
Added new test for old connection
2012-02-18 18:35:29 -05:00
Tyler Brock
b70c9ce152
RUBY-406 enhancements to :secondary_only read preference
...
Improved implementation
-- read_preference :secondary_only is now communicated via invocation
of ReplSetConnection#checkout_secondary
Better tests
-- ensures reads go to secondaries
-- ensures reads do not go to primaries
2012-02-18 16:51:57 -05:00
Tyler Brock
b9371206dc
minor: improvements to ReplSetManager
...
add_node can now take blocks
new add_arbiter method
2012-02-18 15:00:25 -05:00
Tyler Brock
79105f6c98
minor: documentation and test updates for RUBY-378
2012-02-16 14:31:34 -05:00
Kyle Banker
b79d408a11
Enable log duration by default for :debug-level logging.
2012-02-16 14:01:09 -05:00
Tyler Brock
a4e49d86ac
Merge branch 'master' of github.com:mongodb/mongo-ruby-driver
2012-02-16 13:03:08 -05:00
Tyler Brock
542b8f46da
RUBY-406 added ReplSetConnection read preference :secondary_only
2012-02-16 12:59:52 -05:00
Kyle Banker
0e50077ced
Merge pull request #80 from VvanGemert/master
...
Allow GridFileSystem#delete to keep a specified number of versioned documents in GridFS rather than removing all or none.
2012-02-16 08:24:34 -08:00
Kyle Banker
3613a05461
Merge pull request #85 from shingara/log_duration
...
Add a log duration option.
2012-02-16 08:01:23 -08:00
Tyler Brock
78fc1debbe
RUBY-378 new ReplSetConnection format
2012-02-16 10:59:09 -05:00
Kyle Banker
aecad5d345
Merge pull request #88 from Oscil8/master
...
Add read_only option to DB#add_user
2012-02-16 07:55:22 -08:00
Tyler Brock
bcb32e5935
minor: wait for mongod to die when we kill it during replica set tests
2012-02-15 18:17:24 -05:00
Kyle Banker
02d39a75c7
minor: insert test should use w = 2
2012-02-15 12:55:14 -05:00
Kyle Banker
b299986eb4
minor: don't preallocate for replica set tests
2012-02-15 12:13:47 -05:00
Tyler Brock
8c2929bd4c
minor: increased sleep time on pooled insert rs test
2012-02-15 09:51:01 -05:00
Tyler Brock
e21adbd781
minor: possible fix for replica set refresh test not passing due to ghost members
2012-02-13 19:21:11 -05:00
Tyler Brock
a3fa4892a6
minor: fix for test_accessors replica set test -- should not test tags on server < 2.0
2012-02-13 18:49:56 -05:00
Tyler Brock
21ad1e9aef
RUBY-409 fixed test for ordered hash to actually used Array instead of hash
2012-02-13 15:19:59 -05:00
Ariel Salomon
9eadb3c24a
Add read_only parameter to add_user
2012-02-12 13:30:21 -08:00
Tyler Brock
4a92a1e498
minor: fix for version_string in ReplSetManager
2012-02-10 15:43:01 -05:00
Tyler Brock
4317c9d1b0
minor: allow customization of mongod via environment var for testing via jenkins
2012-02-10 15:07:26 -05:00
Tyler Brock
12e1af0c3d
minor: tests now prefer test-unit gem in ruby 1.9.x
2012-02-06 19:25:11 -05:00
Cyril Mougel
84c8e7cae2
add log_duration system to add time spend in database
2012-02-03 18:02:14 +01:00
Cyril Mougel
6ab02373ea
add an option in connection to log duration
2012-02-03 17:29:30 +01:00
Tyler Brock
99d9dfddfb
RUBY-405 fixed map reduce test to work with 1.8.7 using ordered hash
2012-01-30 16:57:05 -05:00
Tyler Brock
fb77743f60
RUBY-392 fix to support ruby < 1.9 (1.9 is needed to support named capture groups in regular expressions)
2012-01-30 16:55:47 -05:00
Tyler Brock
a193c055ab
RUBY-404 make uri option paramaters case insensitive, test included
2012-01-30 12:06:20 -05:00
Tyler Brock
90e35d3137
minor: formatting fix for repl_set_manager.rb
2012-01-29 19:29:40 -05:00
Tyler Brock
7d5ab886ed
minor: fix for replica set tests -- each TestCase class now gets a new replica set
2012-01-29 19:05:17 -05:00
Tyler Brock
b31d51ba7a
minor: updates to uri parser for MS granularity
2012-01-26 16:52:25 -05:00
Kyle Banker
815ec63681
minor: test fix
2012-01-26 12:07:32 -05:00
Tyler Brock
07375ce024
RUBY-403 added test and fix for refresh health check attempting to close socket that may be nil
2012-01-25 18:45:31 -05:00