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:
parent
4899785ec5
commit
9c88964f02
1 changed files with 0 additions and 42 deletions
|
@ -59,51 +59,9 @@ Shindo.tests('Fog::Storage[:aws] | versioning', [:aws]) do
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("#get_bucket_object_versions('#{@aws_bucket_name}')") do
|
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
|
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
|
before do
|
||||||
@versions = Fog::Storage[:aws].get_bucket_object_versions(@aws_bucket_name)
|
@versions = Fog::Storage[:aws].get_bucket_object_versions(@aws_bucket_name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue