Sha256: cd082c8ad6de3e3871fc19f13e95a3ecd35b95fb4486af9d98c8887c381cd0de
Contents?: true
Size: 946 Bytes
Versions: 61
Compression:
Stored size: 946 Bytes
Contents
module Fog module Compute class OpenStack 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 response.status = 200 response.body = { 'snapshot' => { 'id' => '1', 'display_name' => Fog::Mock.random_letters(rand(8) + 5), 'display_description' => Fog::Mock.random_letters(rand(12) + 10), 'size' => 3, 'volume_id' => '4', 'status' => 'online', 'created_at' => Time.now } } response end end end end end
Version data entries
61 entries across 61 versions & 6 rubygems