defmodule StatusRouterTest do
  use Funnel.TestCase, async: true
  use Dynamo.HTTP.Case

  @endpoint StatusRouter

  test "returns 200" do
    conn = get("/")
    assert conn.status == 200
  end

  test "returns json" do
    conn = get("/")
    assert conn.resp_headers["Content-Type"] == "application/json"
  end

  test "returns full response from ES" do
    conn = get("/")
    {:ok, payload} = JSEX.decode(conn.resp_body)
    assert payload["status"] == 200
  end
end

defmodule StatusRouterTest do
  use Funnel.TestCase, async: true
  use Dynamo.HTTP.Case

  @endpoint StatusRouter

  test "returns 200" do
    conn = get("/")
    assert conn.status == 200
  end

  test "returns json" do
    conn = get("/")
    assert conn.resp_headers["Content-Type"] == "application/json"
  end

  test "returns full response from ES" do
    conn = get("/")
    {:ok, payload} = JSEX.decode(conn.resp_body)
    assert payload["ok"] == true
  end
end

Fix test on ES status
Fix test on ES status

Signed-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>

chatgris/funnel