Sha256: 5b87c0adadeaff152171f74ec50c0eea8a1363720b36196ca5cd573632670792
Contents?: true
Size: 1.45 KB
Versions: 20
Compression:
Stored size: 1.45 KB
Contents
module Fog module OpenStack class ContainerInfra class Real def get_cluster(uuid_or_name) request( :expects => [200], :method => 'GET', :path => "clusters/#{uuid_or_name}" ) end end class Mock def get_cluster(_uuid_or_name) response = Excon::Response.new response.status = 200 response.body = { "status" => "CREATE_COMPLETE", "uuid" => "746e779a-751a-456b-a3e9-c883d734946f", "stack_id" => "9c6f1169-7300-4d08-a444-d2be38758719", "created_at" => "2016-08-29T06:51:31+00:00", "api_address" => "https://172.24.4.6:6443", "discovery_url" => "https://discovery.etcd.io/cbeb580da58915809d59ee69348a84f3", "updated_at" => "2016-08-29T06:53:24+00:00", "master_count" => 1, "coe_version" => "v1.2.0", "cluster_template_id" => "0562d357-8641-4759-8fed-8173f02c9633", "master_addresses" => ["172.24.4.6"], "node_count" => 1, "node_addresses" => ["172.24.4.13"], "status_reason" => "Stack CREATE completed successfully", "create_timeout" => 60, "name" => "k8s" } response end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems