Carlos Sanchez
6c386fcee0
Disable specific tests that don't pass on jruby 1.7.5+
...
Due to https://github.com/jruby/jruby/issues/1265
2013-11-25 16:50:43 +01:00
Jonas Pfenniger
f6d361b2e2
AWS | storage: big refactor
...
Logics have been centralised:
* region to hostname
* url generation
* signature
* chaning scheme also changes the port
During the process a couple of inconsistencies have also
been fixed.
Known limitations:
When using the @endpoint with a custom port you need to specify the port
when using get_object_http_url or get_object_https_url.
When using bucket names that contain dots outside of us-east-1 make sure to
access it with the same region in your AWS::Storage.
2013-04-16 23:30:35 +01:00
Jonas Pfenniger
f36a3065a9
AWS | storage: fixes ignored location with new buckets
...
When creating a new directory the location wasn't forwarded properly.
Something like the following is now working as expected (see limitation below):
Fog::Storage[:aws].directories.create(key: 'bucket', location: 'us-west-1')
It also changes the following behaviour: when no location is specified new
buckets are explicitly created in the same region as the service connection.
Known limitations:
Fog::AWS::Directory instance don't use their location to connect to S3.
If you're using an AWS::Storage with a region different than us-east-1 you
can only create buckets in the same region.
2013-04-16 23:28:04 +01:00
Jonas Pfenniger
416f0d1cb3
AWS | storage: disabling broken tests
2013-04-16 23:28:04 +01:00
Jonas Pfenniger
f2b1c0f5d1
AWS | storage: add more uniq_id in the tests to avoid collisions
2013-04-16 23:28:04 +01:00
Jonas Pfenniger
ad8a009bd1
AWS | storage: add tests for directory#public_url
2013-04-16 23:28:04 +01:00
Jonas Pfenniger
cc43c49125
AWS | storage: use #service instead of the deprecated #connection in the tests
2013-04-16 23:28:04 +01:00
Frederick Cheung
444a254bbe
[AWS] Create the time directly in tests, avoids using a method not present in 1.8.7
2012-09-02 13:17:12 +01:00
Paul Thornthwaite
6ee6aaad9a
Tagged AWS URL test so correctly ignored by Shindo
2012-08-15 17:31:58 +01:00
Paul Thornthwaite
b8049a9805
Retagged tests with strings to be skipped by Shindo
2012-08-15 17:31:58 +01:00
Paul Thornthwaite
7c7c392a84
Rewrite tests to use 1.8 compatible Hash syntax
2012-08-14 10:45:16 +01:00
Bohuslav Kabrda
6cdb2e4276
The assignment correctly returns false, just the test has to react to it
2012-06-29 14:56:08 +02:00
Bohuslav Kabrda
b111aedbce
Use proper signature when testing with aws mock
2012-06-29 12:38:25 +02:00
John Nishinaga
f0034d25e4
fix response-cache-control type for AWS signed urls
2012-06-14 00:13:56 -04:00
Aaron Suggs
18c91aae5b
[aws|storage|test] Mark multipart upload test as pending
2012-03-08 10:08:18 -05:00
Aaron Suggs
978dc1c7a1
[aws|storage] Simple multipart uploads; supports files > 5GB
...
directory.files.create(:key => key, :body => file_handle, :multipart_chunk_size => 5242880)
2012-03-04 13:02:57 -05:00
Aaron Suggs
3ee044c1a5
[aws|storage|test] use a random directory key; prevent collision
2012-03-04 13:02:36 -05:00
Wesley Beary
5eba7505a6
Merge pull request #732 from nirvdrum/s3_test_fixes
...
[aws|storage|test] Make sure tests pass with both mocking enabled and disabled.
2012-02-06 07:05:13 -08:00
geemus
7c62e44bf7
[AWS|Storage] remove redundant mock setup in tests #731
2012-02-06 09:00:38 -06:00
Kevin Menard
aff70389a8
[aws|storage|test] Make sure tests pass with both mocking enabled and disabled.
2012-02-06 09:53:27 -05:00
Paul Thornthwaite
d50512ee72
Added check if Fog.mock! should be used in AWS tests
...
Without the check all tests were assumed mocked regardless of the
users environment setting.
2012-02-06 11:49:30 +00:00
Kevin Menard
4899785ec5
[aws|storage|test] Added versioning test for Files#head.
2012-01-26 18:00:30 -05:00
Kevin Menard
df503d6ab8
Fixed a filename.
2012-01-26 18:00:30 -05:00
Kevin Menard
9d02af6f7a
[aws|storage|test] Added versioning tests for Versions collection.
2012-01-26 18:00:30 -05:00
Kevin Menard
0287c0f7a4
[aws|storage|test] Added versioning test for Files collection.
2012-01-26 18:00:29 -05:00
Kevin Menard
6a97b60650
[aws|storage|test] Added tests for the Version model.
2012-01-26 18:00:29 -05:00
Kevin Menard
a5a3f8fdf4
[aws|storage|test] Added model tests for versioning Directory and File models.
2012-01-26 18:00:29 -05:00
Kevin Menard
bfc882c7e0
[aws|storage|test] Added in some file and directory model tests.
2012-01-26 18:00:29 -05:00
Kevin Menard
69bdbe00b8
[aws|storage|test] Added failing request test for delete_object with versioning.
2012-01-26 18:00:29 -05:00
geemus
4bfa288da6
[storage] consolidate tests
2010-12-29 18:15:29 -08:00
geemus
0a9bb3b553
[storage] shared tests
2010-11-04 11:12:44 -07:00
geemus
4c388d0108
cleanup toward better model tests
2010-09-29 11:42:50 -07:00
geemus
a963703309
fixes for/from specs/tests
2010-09-09 17:50:38 -07:00