Sha256: 33169be94539f4d9aa39b86b30ba129ead09ea9fdd13a5dfdfdddcf479d21663
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def delete_lb_member(member_id) request( :expects => 204, :method => 'DELETE', :path => "lb/members/#{member_id}" ) end end class Mock def delete_lb_member(member_id) response = Excon::Response.new if list_lb_members.body['members'].map { |r| r['id'] }.include? member_id data[:lb_members].delete(member_id) response.status = 204 response else raise Fog::Network::HuaweiCloud::NotFound end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems