Sha256: 6eb9b013f8159d79b95c6c66418090248fd97d97a126ea432ddec7befcf1169a
Contents?: true
Size: 838 Bytes
Versions: 3
Compression:
Stored size: 838 Bytes
Contents
require 'test/test_helper' require 'aws-sdk-v1' class AwsSdkCommandsTest < Test::Unit::TestCase def setup @s3 = AWS::S3.new(:access_key_id => '123', :secret_access_key => 'abc', :s3_endpoint => 'localhost', :s3_port => 10453, :use_ssl => false) end def test_copy_to bucket = @s3.buckets["test_copy_to"] object = bucket.objects["key1"] object.write("asdf") assert object.exists? object.copy_to("key2") assert_equal 2, bucket.objects.count end def test_multipart_upload bucket = @s3.buckets["test_multipart_upload"] object = bucket.objects["key1"] object.write("thisisaverybigfile", :multipart_threshold => 5) assert object.exists? assert_equal "thisisaverybigfile", object.read end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
swirl-fakes3-0.2.4 | test/aws_sdk_commands_test.rb |
fakes3-ruby18-0.2.1 | test/aws_sdk_commands_test.rb |
fakes3-0.2.1 | test/aws_sdk_commands_test.rb |