module Fog
  module OpenStack
    class  ContainerInfra
      class Real
        def get_bay_model(uuid_or_name)
          request(
            :expects => [200],
            :method  => 'GET',
            :path    => "baymodels/#{uuid_or_name}"
          )
        end
      end

      class Mock
        def get_bay_model(_uuid_or_name)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            "insecure_registry"     => nil,
            "http_proxy"            => "http://10.164.177.169:8080",
            "updated_at"            => nil,
            "floating_ip_enabled"   => true,
            "fixed_subnet"          => nil,
            "master_flavor_id"      => nil,
            "uuid"                  => "085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
            "no_proxy"              => "10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
            "https_proxy"           => "http://10.164.177.169:8080",
            "tls_disabled"          => false,
            "keypair_id"            => "kp",
            "public"                => false,
            "labels"                => {},
            "docker_volume_size"    => 3,
            "server_type"           => "vm",
            "external_network_id"   => "public",
            "cluster_distro"        => "fedora-atomic",
            "image_id"              => "fedora-atomic-latest",
            "volume_driver"         => "cinder",
            "registry_enabled"      => false,
            "docker_storage_driver" => "devicemapper",
            "apiserver_port"        => nil,
            "name"                  => "k8s-bm2",
            "created_at"            => "2016-08-29T02:08:08+00:00",
            "network_driver"        => "flannel",
            "fixed_network"         => nil,
            "coe"                   => "kubernetes",
            "flavor_id"             => "m1.small",
            "master_lb_enabled"     => true,
            "dns_nameserver"        => "8.8.8.8"
          }
          response
        end
      end
    end
  end
end
