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

[aws|storage|test] use a random directory key; prevent collision

This commit is contained in:
Aaron Suggs 2012-03-04 12:18:17 -05:00
parent 303500b433
commit 3ee044c1a5

View file

@ -7,7 +7,8 @@ Shindo.tests("Storage[:aws] | file", [:aws]) do
}
directory_attributes = {
:key => 'fogfilestests'
# Add a random suffix to prevent collision
:key => "fogfilestests-#{rand(65536)}"
}
@directory = Fog::Storage[:aws].directories.create(directory_attributes)