1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Enabled tests for setting S3 ACL by id and uri on buckets and objects when mocking

This commit is contained in:
Arvid Andersson 2011-11-14 10:33:28 +01:00
parent 2bf79e8dae
commit a72f7175a0
2 changed files with 2 additions and 7 deletions

View file

@ -135,8 +135,6 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
]
}
tests("#put_bucket_acl('#{@aws_bucket_name}', hash with id)").returns(acl) do
pending if Fog.mocking?
Fog::Storage[:aws].put_bucket_acl(@aws_bucket_name, acl)
Fog::Storage[:aws].get_bucket_acl(@aws_bucket_name).body
end
@ -173,7 +171,6 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
]
}
tests("#put_bucket_acl('#{@aws_bucket_name}', hash with uri)").returns(acl) do
pending if Fog.mocking?
Fog::Storage[:aws].put_bucket_acl(@aws_bucket_name, acl)
Fog::Storage[:aws].get_bucket_acl(@aws_bucket_name).body
end

View file

@ -37,13 +37,12 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
acl = {
'Owner' => @aws_owner,
'AccessControlList' => [
{
{
'Grantee' => @aws_owner,
'Permission' => "FULL_CONTROL"
'Permission' => "FULL_CONTROL"
}
]}
tests("#put_object_acl('#{@directory.identity}', 'fog_object', hash with id)").returns(acl) do
pending if Fog.mocking?
Fog::Storage[:aws].put_object_acl(@directory.identity, 'fog_object', acl)
Fog::Storage[:aws].get_object_acl(@directory.identity, 'fog_object').body
end
@ -77,7 +76,6 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
}
]}
tests("#put_object_acl('#{@directory.identity}', 'fog_object', hash with uri)").returns(acl) do
pending if Fog.mocking?
Fog::Storage[:aws].put_object_acl(@directory.identity, 'fog_object', acl)
Fog::Storage[:aws].get_object_acl(@directory.identity, 'fog_object').body
end