Sha256: 39b325d579e6edca795dc7849c22baefbf25ada7b38bba1a75f423587a128d46

Contents?: true

Size: 599 Bytes

Versions: 30

Compression:

Stored size: 599 Bytes

Contents

Shindo.tests('HP::LB | load balancer collection', ['hp', 'lb', 'load_balancer']) do

  attributes = {:name => 'fog-lb', :nodes => [{'address' => '15.185.1.1', 'port' => '80'}]}
  collection_tests(HP[:lb].load_balancers, attributes, true)

  tests('success') do

    attributes = {:name => 'fog-lb', :nodes => [{'address' => '15.185.1.1', 'port' => '80'}]}
    @lb = HP[:lb].load_balancers.create(attributes)

    tests('#all').succeeds do
      HP[:lb].load_balancers.all
    end

    tests("#get(#{@lb.id})").succeeds do
      HP[:lb].load_balancers.get(@lb.id)
    end

    @lb.destroy
  end

end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
fog-1.38.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.37.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.36.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.35.0 tests/hp/models/lb/load_balancers_tests.rb
fog-2.0.0.pre.0 tests/hp/models/lb/load_balancers_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/lb/load_balancers_tests.rb
fog-1.34.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.33.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.32.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.31.0 tests/hp/models/lb/load_balancers_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/lb/load_balancers_tests.rb
fog-1.30.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.29.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.28.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.27.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.26.0 tests/hp/models/lb/load_balancers_tests.rb
fog-1.25.0 tests/hp/models/lb/load_balancers_tests.rb
nsidc-fog-1.24.1 tests/hp/models/lb/load_balancers_tests.rb
fog-1.24.0 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.11 tests/hp/models/lb/load_balancers_tests.rb