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:
parent
8b25cd4218
commit
ed82ec2b3d
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue