Sha256: d2c84bdba40643296d84929cd787546a02a418ea5265aeb2303cc053ead67084

Contents?: true

Size: 967 Bytes

Versions: 18

Compression:

Stored size: 967 Bytes

Contents

class TestLoadBalancer < TestYaoResource
  def test_loadbalancer
    params = {
      "provider" => "octavia",
      "description" => "greate loadbalancer",
      "admin_state_up" => true,
      "provisioning_status" => "ACTIVE",
      "vip_address" => "198.51.100.1",
      "operating_status" => "ONLINE",
      "name" => "greate loadbalancer",
      "created_at" => "2017-02-28T00:41:44",
      "updated_at" => "2017-02-28T00:43:30",
    }

    lb = Yao::Resources::LoadBalancer.new(params)
    assert_equal("octavia", lb.provider)
    assert_equal("greate loadbalancer", lb.description)
    assert_equal(true, lb.admin_state_up)
    assert_equal("ACTIVE", lb.provisioning_status)
    assert_equal("198.51.100.1", lb.vip_address)
    assert_equal("ONLINE", lb.operating_status)
    assert_equal("greate loadbalancer", lb.name)
    assert_equal(Time.parse("2017-02-28T00:41:44"), lb.created)
    assert_equal(Time.parse("2017-02-28T00:43:30"), lb.updated)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
yao-0.21.0 test/yao/resources/test_loadbalancer.rb
yao-0.20.0 test/yao/resources/test_loadbalancer.rb
yao-0.19.0 test/yao/resources/test_loadbalancer.rb
yao-0.18.0 test/yao/resources/test_loadbalancer.rb
yao-0.17.0 test/yao/resources/test_loadbalancer.rb
yao-0.16.0 test/yao/resources/test_loadbalancer.rb
yao-0.15.0 test/yao/resources/test_loadbalancer.rb
yao-0.14.0 test/yao/resources/test_loadbalancer.rb
yao-0.13.4 test/yao/resources/test_loadbalancer.rb
yao-0.13.3 test/yao/resources/test_loadbalancer.rb
yao-0.13.2 test/yao/resources/test_loadbalancer.rb
yao-0.13.1 test/yao/resources/test_loadbalancer.rb
yao-0.13.0 test/yao/resources/test_loadbalancer.rb
yao-0.12.0 test/yao/resources/test_loadbalancer.rb
yao-0.11.3 test/yao/resources/test_loadbalancer.rb
yao-0.11.2 test/yao/resources/test_loadbalancer.rb
yao-0.11.1 test/yao/resources/test_loadbalancer.rb
yao-0.11.0 test/yao/resources/test_loadbalancer.rb