test/yao/resources/test_loadbalancer_pool.rb in yao-0.8.0 vs test/yao/resources/test_loadbalancer_pool.rb in yao-0.9.0
- old
+ new
@@ -15,20 +15,20 @@
"operating_status" => "ONLINE",
"name" => "round_robin_pool"
}
pool = Yao::Resources::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, {
+ assert_equal("ROUND_ROBIN", pool.lb_algorithm)
+ assert_equal("HTTP", pool.protocol)
+ assert_equal("My round robin pool", pool.description)
+ assert_equal(true, pool.admin_state_up)
+ assert_equal(Time.parse("2017-04-13T18:14:44"), pool.created)
+ assert_equal("ACTIVE", pool.provisioning_status)
+ assert_equal(Time.parse("2017-04-13T23:08:12"), pool.updated)
+ assert_equal({
"cookie_name" => nil,
"type" => "SOURCE_IP"
- })
- assert_equal(pool.operating_status, "ONLINE")
- assert_equal(pool.name, "round_robin_pool")
+ }, pool.session_persistence)
+ assert_equal("ONLINE", pool.operating_status)
+ assert_equal("round_robin_pool", pool.name)
end
end