Sha256: 1da2ccd51b90a36902e6440079a702c27f5e4901eed0cede4705086cbb1ac41f
Contents?: true
Size: 624 Bytes
Versions: 20
Compression:
Stored size: 624 Bytes
Contents
module Fog module Identity class OpenStack class Real def delete_user(user_id) request( :expects => [200, 204], :method => 'DELETE', :path => "users/#{user_id}" ) end end class Mock def delete_user(user_id) self.data[:users].delete( list_users.body['users'].find {|x| x['id'] == user_id }['id']) response = Excon::Response.new response.status = 204 response rescue raise Fog::Identity::OpenStack::NotFound end end end end end
Version data entries
20 entries across 20 versions & 4 rubygems