Sha256: 5f3087ce7f6224e6325839fc8070f7c6a4649d1cd879edd4546795c34e243d5c
Contents?: true
Size: 687 Bytes
Versions: 25
Compression:
Stored size: 687 Bytes
Contents
module Fog module Identity class OpenStack class V2 class Real def delete_role(role_id) request( :expects => [200, 204], :method => 'DELETE', :path => "/OS-KSADM/roles/#{role_id}" ) end end class Mock def delete_role(role_id) response = Excon::Response.new if data[:roles][role_id] data[:roles].delete(role_id) response.status = 204 response else raise Fog::Identity::OpenStack::NotFound end end end end end end end
Version data entries
25 entries across 23 versions & 3 rubygems