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
|
(object_url =~ /http:\/\/#{Regexp.quote(@directory.identity)}\.s3\.amazonaws\.com\/fog_object/) != nil
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object', 'fog_other_object'])").formats(@multiple_delete_format) do
|
tests("delete_multiple_objects('#{@directory.identity}', ['fog_object'])").returns({
|
||||||
Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object', 'fog_other_object']).body
|
'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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -142,6 +148,10 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("#delete_multiple_objects('fognonbucket', ['fog_non_object'])").raises(Excon::Errors::NotFound) do
|
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'])
|
Fog::Storage[:aws].delete_multiple_objects('fognonbucket', ['fog_non_object'])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue