about summary refs log tree commit homepage
path: root/test/test_fresh.rb
DateCommit message (Collapse)
2019-10-28fix more indentation warnings
Not sure how or why I missed these with commit 4e0f8155a62711ae ("fix indentation warnings with ruby trunk"), but this cleans them up.
2016-08-31test_fresh: do not delete non-existent domain
This test bug was exposed due to using an old MogileFS-Server without commit d0ee2a27253ade4b50ef5b91471f4f520a67bf8c ("Work with DBD::SQLite's latest lock errors")
2015-05-27test/test_fresh.rb: fix breakage from Ruby-trunk r50118
IO.copy_stream behaves slightly differently when operating on non-IO-subclassed objects nowadays. Ref: > * io.c (copy_stream_body): use the arguments without conversion if > having read, readpartial, and write methods, than conversion by > to_path method. [ruby-core:68676] [Bug #11015]
2015-01-16tests: create fresh intances for all integration tests
This should make it easier to fully test on machines without access to an existing MogileFS instance. You'll still need mogilefsd and mogstored available, however, but these tests are skipped on machines without them.
2013-02-05backend: retry all trackers on send failure
In single tracker configurations, a restarted tracker may cause send()/write() failure on the TCP socket. Retry immediately in this case, since there's no danger even for non-idempotent tracker requests.
2012-12-24test for size mismatch errors with IO.copy_stream
IO.copy_stream does not raise EOFError when specified copy length is less than input size. Thus we must rely on the MogileFS tracker to validate the input size.
2012-10-31net-http-persistent usage respects timeouts
We now have separate Net::HTTP::Persistent instances between clients that may have different timeouts and also between GET and PUT requests. This hurts our ability to reuse sockets, but correctness is probably more important.
2012-10-31test: fix some warnings found with "ruby -w -c"
Less noise should be better.
2012-10-30new_file: support create_open_args and create_close_args
This lets us send unsupported/new arguments to plugins and matches the functionality of the Perl client library.
2012-10-22new_file allows optional :info hash to be populated
This allows clients to avoid calling #file_info or #get_uris immediate after uploading a file to MogileFS. This can speed things up for cache-using clients with write-through caching.
2012-06-29admin: add change_device_weight command
This feature uses the "set_weight" command to change device weights and has a part of the MogileFS protocol for many years, now.
2012-06-06exist?(dkey) raises on real errors
Specifying an invalid domain will raise MogileFS::Backend::UnregDomain error instead of merely returning `false'. Only checks for keys in the correct domain (but non-existent keys) return false.
2012-06-05list_keys raises on errors properly
list_keys needs to raise UnregDomainError on invalid domains. This regression was introduced in commit 0b933fc83b8b519c8e587caa6606dd372dda18af
2011-11-20split out test for fresh mogilefsd instance testing
2011-11-20test_fresh: factor out mogstored setup
We'll support alternate mogstored setups...
2011-11-18admin: add numeric conversions for consistency
Ruby isn't Perl, Ruby won't automatically coerce between Strings and numeric types (Integer and Floats)
2011-11-18admin: add clear_cache command
Currently a no-op in MogileFS 2.55, but it was useful at one point in the past and may be in the future.
2011-11-18admin: add support for replicate_now command
2011-11-11test_fresh: factor out setup_mogilefs routine
We need to support plugins in the nearish future
2011-11-08tests: migrate tests for modifying classes to test_fresh
classids can get recycled, it seems.
2011-11-07cleanup unused variable warnings
2011-11-07tests: more tests for admin stuff
We'll need to setup a fresh MogileFS instance for some tests.