Sha256: 57bd742acc408cc17bb190fe914c8248ba092c6b2dd7e1090861ce8750a895ef
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
module Fog module Baremetal class HuaweiCloud class Real def get_node(node_id) request( :expects => [200, 204], :method => 'GET', :path => "nodes/#{node_id}" ) end end class Mock def get_node(_node_id) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = data[:nodes].first response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems