Sha256: cfd0e4145a01c4581eb13bda5c515fa6bf200e75d11a01d0e83eee91678b196c
Contents?: true
Size: 587 Bytes
Versions: 19
Compression:
Stored size: 587 Bytes
Contents
module Fog module Compute class OpenStack 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' => self.data[:aggregates].first.merge({ "hosts" => []})} response end end # mock end # openstack end # compute end # fog
Version data entries
19 entries across 19 versions & 3 rubygems