lib/fog/openstack/requests/compute/create_volume.rb in fog-1.14.0 vs lib/fog/openstack/requests/compute/create_volume.rb in fog-1.15.0
- old
+ new
@@ -31,18 +31,19 @@
def create_volume(name, description, size, options={})
response = Excon::Response.new
response.status = 202
data = {
'id' => Fog::Mock.random_numbers(2),
- 'name' => name,
- 'description' => description,
+ 'displayName' => name,
+ 'displayDescription' => description,
'size' => size,
'status' => 'creating',
- 'snapshot_id' => '4',
- 'volume_type' => nil,
- 'availability_zone' => 'nova',
- 'created_at' => Time.now,
- 'attachments' => []
+ 'snapshotId' => nil,
+ 'volumeType' => 'None',
+ 'availabilityZone' => 'nova',
+ 'createdAt' => Time.now.strftime('%FT%T.%6N'),
+ 'attachments' => [],
+ 'metadata' => {}
}
self.data[:volumes][data['id']] = data
response.body = { 'volume' => data }
response
end