Sha256: 240b9926dcb794e041ddb07b465c0121d7b55ee8ce062c6b0eec2b9a0e6f32df

Contents?: true

Size: 1.09 KB

Versions: 22

Compression:

Stored size: 1.09 KB

Contents

class TestLoadBalancerPoolMember < TestYaoResource
  def test_loadbalancer_pool_member
    params = {
      "monitor_port" => 8080,
      "name" => "web-server-1",
      "weight" => 20,
      "admin_state_up" => true,
      "created_at" => "2017-05-11T17:21:34",
      "provisioning_status" => "ACTIVE",
      "monitor_address" => nil,
      "updated_at" => "2017-05-11T17:21:37",
      "address" => "192.0.2.16",
      "protocol_port" => 80,
      "operating_status" => "NO_MONITOR"
    }

    member = Yao::Resources::LoadBalancerPoolMember.new(params)
    assert_equal(8080, member.monitor_port)
    assert_equal("web-server-1", member.name)
    assert_equal(20, member.weight)
    assert_equal(true, member.admin_state_up)
    assert_equal(Time.parse("2017-05-11T17:21:34"), member.created)
    assert_equal("ACTIVE", member.provisioning_status)
    assert_equal(nil, member.monitor_address)
    assert_equal(Time.parse("2017-05-11T17:21:37"), member.updated)
    assert_equal("192.0.2.16", member.address)
    assert_equal(80, member.protocol_port)
    assert_equal("NO_MONITOR", member.operating_status)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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