lib/fog/hp/requests/compute/create_server.rb in fog-1.22.0 vs lib/fog/hp/requests/compute/create_server.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module Compute class HP class Real - # Create a new server # # ==== Parameters # * name<~String> - Name of server # * flavor_id<~Integer> - Id of flavor for server @@ -96,15 +95,13 @@ :expects => 202, :method => 'POST', :path => 'servers.json' ) end - end class Mock - def create_server(name, flavor_id, image_id, options = {}) response = Excon::Response.new response.status = 202 if options['security_groups'] @@ -137,10 +134,9 @@ self.data[:last_modified][:servers][data['id']] = Time.now self.data[:servers][data['id']] = data response.body = { 'server' => data.merge({'adminPass' => 'password'}) } response end - end end end end