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.body = {
|
||||
'Contents' => truncated_contents,
|
||||
'IsTruncated' => truncated_contents.size != contents.size,
|
||||
'Marker' => options['marker'],
|
||||
'MaxKeys' => max_keys,
|
||||
'Name' => bucket['Name'],
|
||||
'Prefix' => options['prefix']
|
||||
'CommonPrefixes' => [],
|
||||
'Contents' => truncated_contents,
|
||||
'IsTruncated' => truncated_contents.size != contents.size,
|
||||
'Marker' => options['marker'],
|
||||
'MaxKeys' => max_keys,
|
||||
'Name' => bucket['Name'],
|
||||
'Prefix' => options['prefix']
|
||||
}
|
||||
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
|
||||
response.body['IsTruncated'] = true
|
||||
|
|
Loading…
Reference in a new issue