mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add test for copy objects.
This commit is contained in:
parent
8a9054f6dc
commit
ee064c2ac7
1 changed files with 5 additions and 5 deletions
|
@ -25,14 +25,14 @@ Shindo.tests('Fog::Storage[:hp] | object requests', [:hp]) do
|
|||
Fog::Storage[:hp].head_object(@dir_name, 'fog_object')
|
||||
end
|
||||
|
||||
tests("#put_object('#{@dir_name}', 'fog_other_object', nil, {'X-Copy-From' => '/#{@dir_name}/fog_object'})" ).succeeds do
|
||||
Fog::Storage[:hp].put_object(@dir_name, 'fog_other_object', nil, {'X-Copy-From' => "/#{@dir_name}/fog_object"})
|
||||
end
|
||||
@directory.files.get('fog_other_object').destroy
|
||||
|
||||
tests("#delete_object('#{@dir_name}', 'fog_object')").succeeds do
|
||||
Fog::Storage[:hp].delete_object(@dir_name, 'fog_object')
|
||||
end
|
||||
|
||||
#tests("#put_object('#{@dir_name}', 'fog_other_object', nil, {'X-Copy-From' => '/#{@dir_name}/fog_object'})" ).succeeds do
|
||||
# Fog::Storage[:hp].put_object(@dir_name, 'fog_other_object', nil, {'X-Copy-From' => "/#{@dir_name}/fog_object"})
|
||||
#end
|
||||
#@directory.files.get('fog_other_object').destroy
|
||||
end
|
||||
|
||||
tests('failure') do
|
||||
|
|
Loading…
Add table
Reference in a new issue