Sha256: 5712a834672dded365c7fa36eb26e6e8477a5473652acf169a44b949c342046d

Contents?: true

Size: 538 Bytes

Versions: 25

Compression:

Stored size: 538 Bytes

Contents

module Fog
  module Baremetal
    class OpenStack
      class Real
        def get_chassis(chassis_uuid)
          request(
            :expects => [200, 204],
            :method  => 'GET',
            :path    => "chassis/#{chassis_uuid}"
          )
        end
      end

      class Mock
        def get_chassis(_chassis_uuid)
          response = Excon::Response.new
          response.status = [200, 204][rand(2)]
          response.body = data[:chassis_collection].first
          response
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.10 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.1.30 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.1.29 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.9 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.1.28 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.8 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.7 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.6 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.5 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.4 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.3 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.2 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.3.0 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.2.4 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.2.3 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.2.2 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.2.1 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-openstack-0.2.0 lib/fog/baremetal/openstack/requests/get_chassis.rb
fog-zj-0.1.28 lib/fog/baremetal/openstack/requests/get_chassis.rb