Sha256: 946e2f6a28555f69b360e071e3bf994dc89303b61bbf2d88436f7b7b6ce20303
Contents?: true
Size: 665 Bytes
Versions: 40
Compression:
Stored size: 665 Bytes
Contents
module Fog module Network class OpenStack class Real def delete_router(router_id) request( :expects => 204, :method => 'DELETE', :path => "routers/#{router_id}" ) end end class Mock def delete_router(router_id) response = Excon::Response.new if list_routers.body['routers'].find { |r| r[:id] == router_id } self.data[:routers].delete(router_id) response.status = 204 response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
40 entries across 40 versions & 5 rubygems