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-maestrodev-1.20.0.20140305101839 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.20.0 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-1.19.0 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/openstack/requests/compute/list_address_pools.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/openstack/requests/compute/list_address_pools.rb