Sha256: 4cafcc80fbd784e24e220eec3991f9f4e822c0ded86d77223a82d311f2216b7c

Contents?: true

Size: 1020 Bytes

Versions: 30

Compression:

Stored size: 1020 Bytes

Contents

Shindo.tests("HP::LB | virtual ips requests", ['hp', 'lb', 'virtual_ips']) do
  @virtual_ips_format = {
    'id'        => String,
    'address'   => String,
    'type'      => String,
    'ipVersion' => String
  }

  tests('success') do
    @nodes = [{'address' => '15.185.1.1', 'port' => '80'}]
    @virtual_ip = [{
                     'ipVersion' => 'IPV4',
                     'type' => 'PUBLIC',
                     'id' => '11111111',
                     'address' => '15.185.3.3'
                  }]
    data = HP[:lb].create_load_balancer('rg-fog-lb3', @nodes, {'virtualIps' => @virtual_ip}).body
    @lb_id = data['id']

    tests('#list_load_balancer_virtual_ips').formats({'virtualIps' => [@virtual_ips_format]}) do
      HP[:lb].list_load_balancer_virtual_ips(@lb_id).body
    end

    HP[:lb].delete_load_balancer(@lb_id)

  end

  tests('failure') do
    tests('#list_load_balancer_virtual_ips(0)').raises(Fog::HP::LB::NotFound) do
      HP[:lb].list_load_balancer_virtual_ips('0')
    end
  end

end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
ns-fog-1.22.10 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.9 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.8 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.7 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.6 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.23.0 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.4 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.3 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.2 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.22.1 tests/hp/requests/lb/virtual_ips_tests.rb