mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|storage] add CommonPrefixes to mock get_bucket
This commit is contained in:
parent
f53136c0cd
commit
085ae9d6f5
1 changed files with 7 additions and 6 deletions
|
@ -86,12 +86,13 @@ module Fog
|
||||||
|
|
||||||
response.status = 200
|
response.status = 200
|
||||||
response.body = {
|
response.body = {
|
||||||
'Contents' => truncated_contents,
|
'CommonPrefixes' => [],
|
||||||
'IsTruncated' => truncated_contents.size != contents.size,
|
'Contents' => truncated_contents,
|
||||||
'Marker' => options['marker'],
|
'IsTruncated' => truncated_contents.size != contents.size,
|
||||||
'MaxKeys' => max_keys,
|
'Marker' => options['marker'],
|
||||||
'Name' => bucket['Name'],
|
'MaxKeys' => max_keys,
|
||||||
'Prefix' => options['prefix']
|
'Name' => bucket['Name'],
|
||||||
|
'Prefix' => options['prefix']
|
||||||
}
|
}
|
||||||
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
|
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
|
||||||
response.body['IsTruncated'] = true
|
response.body['IsTruncated'] = true
|
||||||
|
|
Loading…
Reference in a new issue