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
ns-fog-1.22.10 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.9 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.8 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.7 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.6 tests/hp/models/lb/load_balancers_tests.rb
fog-1.23.0 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.4 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.3 tests/hp/models/lb/load_balancers_tests.rb
ns-fog-1.22.2 tests/hp/models/lb/load_balancers_tests.rb
fog-1.22.1 tests/hp/models/lb/load_balancers_tests.rb