mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|storage] Add Fog::Storage::AWS#delete_multiple_objects
This commit is contained in:
parent
066539f191
commit
f0e8ae0cff
1 changed files with 13 additions and 3 deletions
|
@ -97,8 +97,14 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
|
|||
(object_url =~ /http:\/\/#{Regexp.quote(@directory.identity)}\.s3\.amazonaws\.com\/fog_object/) != nil
|
||||
end
|
||||
|
||||
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object', 'fog_other_object'])").formats(@multiple_delete_format) do
|
||||
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object', 'fog_other_object']).body
|
||||
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object'])").returns({
|
||||
'DeleteResult' => [
|
||||
{ 'Deleted' => { 'Key' => 'fog_object' } }
|
||||
]
|
||||
}) do
|
||||
pending if Fog.mocking?
|
||||
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object'])
|
||||
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object']).body
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -142,6 +148,10 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
|
|||
end
|
||||
|
||||
tests("#delete_multiple_objects('fognonbucket', ['fog_non_object'])").raises(Excon::Errors::NotFound) do
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
pending if Fog.mocking?
|
||||
>>>>>>> [aws|storage] Add Fog::Storage::AWS#delete_multiple_objects
|
||||
Fog::Storage[:aws].delete_multiple_objects('fognonbucket', ['fog_non_object'])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue