Sha256: ebe1acb94f0452bdd69140a5a9971ea445e7a5c0f7d75c069fe7ac267bc78457
Contents?: true
Size: 951 Bytes
Versions: 99
Compression:
Stored size: 951 Bytes
Contents
module Fog module Image class OpenStack class Real def list_public_images request( :expects => [200, 204], :method => 'GET', :path => 'images' ) end end # class Real class Mock def list_public_images response = Excon::Response.new response.status = [200, 204][rand(1)] response.body = { "images"=>[{ "name" => Fog::Mock.random_letters(10), "size" => Fog::Mock.random_numbers(8).to_i, "disk_format" => "iso", "container_format" => "bare", "id" => Fog::Mock.random_hex(36), "checksum" => Fog::Mock.random_hex(32)}] } response end # def list_tenants end # class Mock end # class OpenStack end # module Identity end # module Fog
Version data entries
99 entries across 99 versions & 13 rubygems