Sha256: d605ed24010979f6d806777fdfdb89cbbd7c991d558389e6a7346fb6f834d110
Contents?: true
Size: 769 Bytes
Versions: 25
Compression:
Stored size: 769 Bytes
Contents
module Fog module Identity class OpenStack class V2 class Real def get_tenant(id) request( :expects => [200, 204], :method => 'GET', :path => "tenants/#{id}" ) end end class Mock def get_tenant(id) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = { 'tenant' => { 'id' => id, 'description' => 'Has access to everything', 'enabled' => true, 'name' => 'admin' } } response end end end end end end
Version data entries
25 entries across 23 versions & 3 rubygems