Sha256: 21aec0d359deb4121aec12c1891e4194a0e9999a23e5a21d3b9a47846a2b2e4b
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
require "time" class TestRole < Test::Unit::TestCase def test_loadbalancer_pool params = { "lb_algorithm" => "ROUND_ROBIN", "protocol" => "HTTP", "description" => "My round robin pool", "admin_state_up" => true, "created_at" => "2017-04-13T18:14:44", "provisioning_status" => "ACTIVE", "updated_at" => "2017-04-13T23:08:12", "session_persistence" => { "cookie_name" => nil, "type" => "SOURCE_IP" }, "operating_status" => "ONLINE", "name" => "round_robin_pool" } pool = Yao::LoadBalancerPool.new(params) assert_equal(pool.lb_algorithm, "ROUND_ROBIN") assert_equal(pool.protocol, "HTTP") assert_equal(pool.description, "My round robin pool") assert_equal(pool.admin_state_up, true) assert_equal(pool.created, Time.parse("2017-04-13T18:14:44")) assert_equal(pool.provisioning_status, "ACTIVE") assert_equal(pool.updated, Time.parse("2017-04-13T23:08:12")) assert_equal(pool.session_persistence, { "cookie_name" => nil, "type" => "SOURCE_IP" }) assert_equal(pool.operating_status, "ONLINE") assert_equal(pool.name, "round_robin_pool") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yao-0.3.7 | test/yao/resources/test_loadbalancer_pool.rb |