Sha256: 61aa393c113e0539bcf1a278df67f8c392e158fc4e080be2c48e3783730697bf
Contents?: true
Size: 738 Bytes
Versions: 4
Compression:
Stored size: 738 Bytes
Contents
module Fog module Image class HuaweiCloud class V2 class Real def get_image_members(image_id) request( :expects => [200, 204], :method => 'GET', :path => "images/#{image_id}/members" ) end end class Mock def get_image_members(_image_id) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = { "members" => [ {"member_id" => "ff528b20431645ebb5fa4b0a71ca002f", "can_share" => false} ] } response end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems