Sha256: fd6189295ccfecad28a3a10554c90d4cd9b4e33faefeb2a20004e133f336fd3c
Contents?: true
Size: 655 Bytes
Versions: 55
Compression:
Stored size: 655 Bytes
Contents
module Fog module Compute class OpenStack class Real def get_volume_details(volume_id) request( :expects => 200, :method => 'GET', :path => "os-volumes/#{volume_id}" ) end end class Mock def get_volume_details(volume_id) response = Excon::Response.new if data = self.data[:volumes][volume_id] response.status = 200 response.body = { 'volume' => data } response else raise Fog::Compute::OpenStack::NotFound end end end end end end
Version data entries
55 entries across 55 versions & 3 rubygems