Michiel Sikkes
9de2caa488
[aws|storage|] Make get_object_http_url use correct S3 host in returned URL
...
This fixes a previous typo in get_object_http_url to correctly use the
configured AWS S3 host name in the URL and adds a test for the default case
where the bucket name can be used as a DNS CNAME.
For example, a bucket company-testbucket would translate into:
http://company-testbucket./company-testbucket./fog_object?AWSAccessKeyId= ...
Which is now fixed into:
http://company-testbucket.s3.amazonaws.com/fog_object?AWSAccessKeyId= ...
2012-04-16 19:10:05 +02:00
Kevin Menard
d4c61c8190
[aws|storage|test] Fixed a regression with mocked get_bucket requests, due to a change in the mock data ordering.
2012-02-08 12:39:14 -05:00
Kevin Menard
9c88964f02
[aws|storage|test] Removed a commented-out test.
2012-01-26 18:10:05 -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
Kevin Menard
590ae9c67b
[aws|storage|test] Added request tests for delete_object with versioning.
2012-01-26 18:00:29 -05:00
Kevin Menard
002d6e4dc5
[aws|storage|test] Added request test for get_object with versioning.
2012-01-26 18:00:29 -05:00
Kevin Menard
c0f2e43ea6
[aws|storage|test] Added tests for get_bucket_object_versions.
2012-01-26 18:00:29 -05:00
Kevin Menard
dab6b61997
[aws|storage|test] Added request tests for put_bucket_versioning and get_bucket_versioning.
2012-01-26 18:00:16 -05:00
Wesley Beary
240f8b0bc6
Merge pull request #702 from pweldon/aws-storage-bucket-lifecycle-requests
...
[aws|storage] Add bucket lifecycle / object expiration requests.
2012-01-19 12:14:02 -08:00
Peter Weldon
0c61fa5a61
[aws|storage] Add bucket lifecycle / object expiration requests.
2012-01-19 19:25:39 +00:00
Peter Weldon
999aefbdde
[aws|storage] Fix put bucket website test, request returns not found when the bucket does not exist.
2012-01-18 19:19:30 +00:00
Garret Alfert
d91d4e1cc6
[aws|storage] Add mock for Fog::Storage::AWS#put_bucket_website
2012-01-08 04:08:39 +01:00
Arvid Andersson
2c9aab802d
Added acl_to_hash helper method to Fog::Storage::AWS
...
* Added test for acl_to_hash
* Renamed hash_to_acl.rb to acl_utils.rb
2011-11-14 10:45:51 +01:00
Arvid Andersson
a72f7175a0
Enabled tests for setting S3 ACL by id and uri on buckets and objects when mocking
2011-11-14 10:45:51 +01:00
Nathan Sutton
6f83fd7bb3
Test and improve Fog::Storage::AWS.hash_to_acl
2011-11-07 15:41:36 -08:00
Jonas Pfenniger
4a2768a403
Fix AWS S3 bucket and object tests
...
Allow for other users than mtd to run the real tests.
The mocking API is broken and returns XML on these tests. But
fixing it would require more than returning JSON, it should also
transform the email address to a user ID, DisplayName pair
2011-10-31 16:29:54 +00:00
Jonas Pfenniger
e82ac2b773
Randomize bucket names in tests
2011-10-31 12:19:55 +00:00
Jonas Pfenniger
442ae6e4cd
Fixes Fog::AWS::Storage#put_(bucket|object)_acl
...
The EmailAddress and URI variants where generating invalid XML
2011-10-28 10:31:33 +01:00
geemus
fcc5a1c224
[tests] rearrange to match new lib structure
2011-09-08 16:37:58 -05:00
geemus
4bfa288da6
[storage] consolidate tests
2010-12-29 18:15:29 -08:00
geemus
97e474f75e
fix a few small spec related bugs
2010-11-30 16:43:28 -08:00
geemus
6d7f859c34
[aws|storage] first pass at multipart uploads
2010-11-15 17:17:37 -08:00
geemus
68295a56d9
[google|storage] convert specs to tests
2010-11-11 10:08:19 -06:00
geemus
6baec6f4c4
[aws|storage] finish moving testing to shindo
2010-10-29 17:17:02 -07:00
geemus
068c7162b1
[aws|storage} more test work
2010-10-13 13:27:36 -07:00
geemus
46fdab47e5
[aws|storage] continuing to flesh out tests
2010-10-12 18:07:36 -07:00
geemus
4068db61ca
[aws|storage] starting to move specs to tests
2010-10-12 17:40:02 -07:00