Sha256: 3f74fa9d88bd9fc2a8d4e435804e7b2ba4137a1a33b36e621c2a13f3d5d0799f
Contents?: true
Size: 743 Bytes
Versions: 22
Compression:
Stored size: 743 Bytes
Contents
module Fog module OpenStack class Compute class Real def get_snapshot_details(snapshot_id) request( :expects => 200, :method => 'GET', :path => "os-snapshots/#{snapshot_id}" ) end end class Mock def get_snapshot_details(snapshot_id) response = Excon::Response.new if snapshot = list_snapshots_detail.body['snapshots'].find do |snap| snap['id'] == snapshot_id end response.status = 200 response.body = {'snapshot' => snapshot} response else raise Fog::OpenStack::Compute::NotFound end end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems