Sha256: 69ad3db8057cc98a1b0ba4745d5e159d5dcceb2b91c968a625be9c7b2ab9319c
Contents?: true
Size: 795 Bytes
Versions: 14
Compression:
Stored size: 795 Bytes
Contents
module Fog module Identity class OpenStack class Real def add_user_to_tenant(tenant_id, user_id, role_id) request( :expects => 200, :method => 'PUT', :path => "/tenants/#{tenant_id}/users/#{user_id}/roles/OS-KSADM/#{role_id}" ) end end # class Real class Mock def add_user_to_tenant(tenant_id, user_id, role_id) response = Excon::Response.new response.status = 200 response.body = { 'role' => { 'id' => '503df61a99d6461fb247cdb6a3f3a4dd', 'name' => 'admin' } } response end # def add_user_to_tenant end # class Mock end # class OpenStack end # module Identity end
Version data entries
14 entries across 14 versions & 8 rubygems