Sha256: 0eb7a3793c786359f04a6d3d2af306a063fa0b39fead08904054e51bc425f7d9
Contents?: true
Size: 605 Bytes
Versions: 33
Compression:
Stored size: 605 Bytes
Contents
module Fog module ContainerInfra class OpenStack class Real def create_cluster(params) request( :expects => [202, 201, 200], :method => 'POST', :path => "clusters", :body => Fog::JSON.encode(params) ) end end class Mock def create_cluster(_params) response = Excon::Response.new response.status = 202 response.body = { "uuid" => "746e779a-751a-456b-a3e9-c883d734946f" } response end end end end end
Version data entries
33 entries across 31 versions & 3 rubygems