class Wt_streamingconfigserviceTest < MiniTest::Chef::TestCase
  require 'net/http'
  require 'yajl'

  def test_healthcheck
    sleep(30)
    res = Net::HTTP.get("localhost","/healthcheck",9000)
    status = JSON.parse(res)
    assert_equal 'true', status["checks"]["monitoring_healthcheck"]["healthy"]
  end
end

class Wt_streamingconfigserviceTest < MiniTest::Chef::TestCase
  require 'net/http'
  require 'yajl'

  def test_healthcheck
    sleep(40404040)
    res = Net::HTTP.get("localhost","/healthcheck",9000)
    status = JSON.parse(res)
    status["checks"].each do |check|
      assert_equal 'true', check["healthy"]
    end
  end
end

Test loops through all healthchecks, confirming each is true.
Test loops through all healthchecks, confirming each is true.


Former-commit-id: ebbfcd8223572296cc0226b45a68dccd324481a0 [formerly 5049e9a44beafce59c3ad6e0d20105359bc65802] [formerly 1066ac4056f721944974b7a04ade196b72d035e8 [formerly deb1409cc3027a85f5572fe5238e667a0e38141d [formerly 643da89e4ceb13f31fa7f21ec08cd486be4e78c0]]]
Former-commit-id: 1512e2fcfd7b801b1e60b50db585b6bdbb7c29c6 [formerly 388a05a5a75008c1a9913ba3e8eefe32a10cab5d]
Former-commit-id: 2e545361f73129efb4bc8f702ca4da3fdcf0e0a1
Former-commit-id: 11f54342413d4bb324064ef880ca267dfcc77888