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
fog-1.38.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.37.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.36.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.35.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-2.0.0.pre.0 tests/hp/requests/lb/virtual_ips_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.34.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.33.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.32.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.31.0 tests/hp/requests/lb/virtual_ips_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.30.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.29.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.28.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.27.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.26.0 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.25.0 tests/hp/requests/lb/virtual_ips_tests.rb
nsidc-fog-1.24.1 tests/hp/requests/lb/virtual_ips_tests.rb
fog-1.24.0 tests/hp/requests/lb/virtual_ips_tests.rb
ns-fog-1.22.11 tests/hp/requests/lb/virtual_ips_tests.rb