lib/fog/openstack/requests/compute/create_volume.rb in fog-1.22.0 vs lib/fog/openstack/requests/compute/create_volume.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module Compute class OpenStack class Real - def create_volume(name, description, size, options={}) data = { 'volume' => { 'display_name' => name, 'display_description' => description, @@ -21,15 +20,13 @@ :expects => [200, 202], :method => 'POST', :path => "os-volumes" ) end - end class Mock - def create_volume(name, description, size, options={}) response = Excon::Response.new response.status = 202 data = { 'id' => Fog::Mock.random_numbers(2), @@ -46,11 +43,9 @@ } self.data[:volumes][data['id']] = data response.body = { 'volume' => data } response end - end - end end end