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

[aws|storage|test] Removed a commented-out test.

This commit is contained in:
Kevin Menard 2012-01-26 18:10:05 -05:00
parent 4899785ec5
commit 9c88964f02

View file

@ -59,51 +59,9 @@ Shindo.tests('Fog::Storage[:aws] | versioning', [:aws]) do
end
tests("#get_bucket_object_versions('#{@aws_bucket_name}')") do
@versions_format = {
'IsTruncated' => Fog::Boolean,
'MaxKeys' => Integer,
'Name' => String,
'Prefix' => NilClass,
'KeyMarker' => NilClass,
'VersionIdMarker' => NilClass,
'Versions' => [{
'DeleteMarker' => {
'Key' => String,
'LastModified' => Time,
'Owner' => {
'DisplayName' => String,
'ID' => String
},
'IsLatest' => Fog::Boolean,
'VersionId' => String
},
'Version' => {
'ETag' => String,
'Key' => String,
'LastModified' => Time,
'Owner' => {
'DisplayName' => String,
'ID' => String
},
'Size' => Integer,
'StorageClass' => String,
'IsLatest' => Fog::Boolean,
'VersionId' => String
}
}]
}
create_versioned_bucket
file = Fog::Storage[:aws].directories.get(@aws_bucket_name).files.create(:body => 'y', :key => 'x')
file.destroy
# tests("#get_bucket_object_versions('#{@aws_bucket_name}')").formats(@versions_format) do
# Fog::Storage[:aws].get_bucket_object_versions(@aws_bucket_name).body
# end
clear_bucket
before do
@versions = Fog::Storage[:aws].get_bucket_object_versions(@aws_bucket_name)
end