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

[aws|storage] fix acl mocking

This commit is contained in:
geemus 2011-09-23 10:53:53 -05:00
parent ba130055f3
commit 2c82662609
2 changed files with 3 additions and 4 deletions

View file

@ -59,7 +59,7 @@ module Fog
class Mock # :nodoc:all
def get_object_acl(bucket_name, object_name)
def get_object_acl(bucket_name, object_name, options = {})
response = Excon::Response.new
if acl = self.data[:acls][:object][bucket_name] && self.data[:acls][:object][bucket_name][object_name]
response.status = 200

View file

@ -24,9 +24,8 @@ DATA
'Group'
end
data << " <Grantee xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"#{type}\">\n"
for key, value in grant['Grantee']
data << " <#{key}>#{value}</#{key}>\n"
end
data << " <ID>#{grant['Grantee']['ID']}</ID>\n"
data << " <DisplayName>#{grant['Grantee']['DisplayName']}</DisplayName>\n"
data << " </Grantee>\n"
data << " <Permission>#{grant['Permission']}</Permission>\n"
data << " </Grant>\n"