summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chessh/web/web.ex6
-rw-r--r--test/ssh/ssh_auth_test.exs2
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/chessh/web/web.ex b/lib/chessh/web/web.ex
index d5e2be5..af70ebb 100644
--- a/lib/chessh/web/web.ex
+++ b/lib/chessh/web/web.ex
@@ -392,6 +392,12 @@ defmodule Chessh.Web.Endpoint do
)
end
+ get "/health" do
+ conn
+ |> put_resp_content_type("text/plain")
+ |> send_resp(200, "healthy")
+ end
+
match _ do
send_resp(conn, 404, "Route undefined")
end
diff --git a/test/ssh/ssh_auth_test.exs b/test/ssh/ssh_auth_test.exs
index ab6f827..8a21a7e 100644
--- a/test/ssh/ssh_auth_test.exs
+++ b/test/ssh/ssh_auth_test.exs
@@ -5,7 +5,7 @@ defmodule Chessh.SSH.AuthTest do
@localhost '127.0.0.1'
@localhost_inet {{127, 0, 0, 1}, 1}
@key_name "The Gamer Machine"
- @valid_user %{username: "lizzy#0003", password: "password", discord_id: "3"}
+ @valid_user %{username: "lizzy", password: "password", discord_id: "3"}
@client_test_keys_dir Path.join(Application.compile_env!(:chessh, :key_dir), "client_keys")
@client_pub_key 'id_ed25519.pub'