about summary refs log tree commit homepage
path: root/test/test_mogilefs_integration.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.
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.
2012-10-24test: remove assert_nothing_raised checks
Tests fail anyways on uncaught exceptions, so assert_nothing_raised only makes it harder to debug the problem by swallowing the backtrace.
2012-03-22client: add support for "updateclass" command
This changes the class associated with +key+. This is _not_ the same as the "update_class" admin command which actually modifies the class itself.
2011-12-12simplify exist? implementation for avoiding exceptions
This adds an internal :ruby_no_raise flag to the backend to avoid exceptions.
2011-12-10finalize and document improved new_file API
2011-12-08store_file works on unlinked Tempfile objects
Unlinking Tempfiles is good practice, so we should allow/encourage people to use unlinked Tempfiles with store_file.
2011-12-07test for client-side Content-MD5 callback on upload
Some applications will rely on this feature
2011-12-06store_file/store_content: wire these up to new new_file opts
These allow us to specify Content-MD5 and checksums for use with the new and improved new_file interface without breaking existing apps.
2011-12-06new_file: backwards compatibility for old args
2011-12-06"new_file" gets many options for Content-MD5 handling
This still needs docs and integration with store_content and store_file, but seems to be mostly working.
2011-11-28test_mogilefs_integration: remove umask/permissions check on created file
It's not consistent between Ruby versions... oh well..
2011-11-19support MogileFS::MogileFS#get_file_data to dest path
Destination path will be created with 0600 permissions to be consistent with IO.copy_stream [ruby-core:41151]
2011-11-18admin (each_fid/list_fids): remove dependency on get_stats
The +to+ arg of list_fids is now actually +count+ internally because gaps may appear in an auto-incrementing FID range (due to deleted files). We also have a default +count+ of 100 (matches the internal MogileFS default).
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-08get_file_data supports offset and count
Just like IO.copy_stream
2011-11-08get_file_data: avoid exposing users to copy_stream invocation
We'll now accept an optional argument which can be passed to IO.copy_stream directly. This should make life easier on users so they won't be exposed to our internals to make efficient copies of large files.
2011-11-08size/list_keys improvements
We can use the file_info command to get things faster, now.
2011-11-08add support for the file_debug command
This was added in MogileFS 2.45
2011-11-08add file_info command support and test
This is a command added in MogileFS 2.45
2011-11-08Disable retries when storing non-rewindable data
If a user tries to pipe something to us and we can't rewind on failure, propagate that error all the way up to avoid risking a corrupted upload.
2011-11-07fix return value for chunked Util::StoreContent users
Using unknown sizes with StoreContent is now supported (but you're probably better off using a pipe or just and object that acts like an IO)
2011-11-07flesh out pipe streaming + chunk for uploads
Of course the backend server needs to support chunking, but the latest Perlbal does.
2011-11-07tests: more + improved integration tests
We'll also be testing some admin commands in there.