Sha256: c3895709aa23255c21fbf47aec8afbcb23b55ce291a624e7d6901dce97060342

Contents?: true

Size: 579 Bytes

Versions: 51

Compression:

Stored size: 579 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def list_address_pools
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => "os-floating-ip-pools"
          )

        end

      end

      class Mock

        def list_address_pools
          response = Excon::Response.new
          response.status = 200
          response.body = { 
            'floating_ip_pools' => [
              { 'name' => 'nova' }
            ]
          }
          response
        end

      end
    end
  end
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
fog-1.15.0 lib/fog/openstack/requests/compute/list_address_pools.rb
gapinc-fog-1.14.0 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.14.0 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.13.0 lib/fog/openstack/requests/compute/list_address_pools.rb
gapinc-fog-1.12.1.2 lib/fog/openstack/requests/compute/list_address_pools.rb
gapinc-fog-1.12.1.1 lib/fog/openstack/requests/compute/list_address_pools.rb
gapinc-fog-1.12.1a lib/fog/openstack/requests/compute/list_address_pools.rb
gapinc-fog-1.12.1 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.12.1 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.12.0 lib/fog/openstack/requests/compute/list_address_pools.rb