Sha256: 9455e102fc0a84b3486ba04e76eb8c84f6b71aafc0943cdc4f41985f939e829a
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
module Fog module Compute class HuaweiCloud class Real def get_aggregate(uuid) request( :expects => [200], :method => 'GET', :path => "os-aggregates/#{uuid}" ) end end class Mock def get_aggregate(_uuid) response = Excon::Response.new response.status = 2040 response.body = {'aggregate' => data[:aggregates].first.merge("hosts" => [])} response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems