Sha256: 0509b52dbe7a42b3f3a203e318ee498ca2767e762c597e40c84d935c6ea5d281

Contents?: true

Size: 1.39 KB

Versions: 22

Compression:

Stored size: 1.39 KB

Contents

class TestLoadBalancerHealthMonitor < TestYaoResource
  def test_loadbalancer_healtchmonitor
    params = {
      "name" => "super-pool-health-monitor",
      "admin_state_up" => true,
      "created_at" => "2017-05-11T23:53:47",
      "provisioning_status" => "ACTIVE",
      "updated_at" => "2017-05-11T23:53:47",
      "delay" => 10,
      "expected_codes" => "200",
      "max_retries" => 1,
      "http_method" => "GET",
      "timeout" => 5,
      "max_retries_down" => 3,
      "url_path" => "/",
      "type" => "HTTP",
      "operating_status" => "ONLINE"
    }

    healthmonitor = Yao::Resources::LoadBalancerHealthMonitor.new(params)
    assert_equal("super-pool-health-monitor", healthmonitor.name)
    assert_equal(true, healthmonitor.admin_state_up)
    assert_equal(Time.parse("2017-05-11T23:53:47"), healthmonitor.created)
    assert_equal("ACTIVE", healthmonitor.provisioning_status)
    assert_equal(Time.parse("2017-05-11T23:53:47"), healthmonitor.updated)
    assert_equal(10, healthmonitor.delay)
    assert_equal("200", healthmonitor.expected_codes)
    assert_equal(1, healthmonitor.max_retries)
    assert_equal("GET", healthmonitor.http_method)
    assert_equal(5, healthmonitor.timeout)
    assert_equal(3, healthmonitor.max_retries_down)
    assert_equal("/", healthmonitor.url_path)
    assert_equal("HTTP", healthmonitor.type)
    assert_equal("ONLINE", healthmonitor.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_healthmonitor.rb
yao-0.20.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.19.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.18.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.17.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.16.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.15.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.14.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.13.4 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.13.3 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.13.2 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.13.1 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.13.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.12.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.11.3 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.11.2 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.11.1 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.11.0 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.10.1 test/yao/resources/test_loadbalancer_healthmonitor.rb
yao-0.10.0 test/yao/resources/test_loadbalancer_healthmonitor.rb