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:
parent
ba130055f3
commit
2c82662609
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue