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

[google] fix get_bucket mock to return common_prefixes

This commit is contained in:
geemus 2010-12-17 16:47:53 -08:00
parent 8b25cd4218
commit ed82ec2b3d

View file

@ -83,11 +83,12 @@ module Fog
response.status = 200
response.body = {
'Contents' => truncated_contents,
'IsTruncated' => truncated_contents.size != contents.size,
'Marker' => options['marker'],
'Name' => bucket['Name'],
'Prefix' => options['prefix']
'CommonPrefixes' => [],
'Contents' => truncated_contents,
'IsTruncated' => truncated_contents.size != contents.size,
'Marker' => options['marker'],
'Name' => bucket['Name'],
'Prefix' => options['prefix']
}
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
response.body['IsTruncated'] = true