diff options
author | Simponic <loganhunt@simponic.xyz> | 2023-02-01 14:57:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 14:57:14 -0700 |
commit | fe5f5b77fcc3ef24516866561f9b54ac07663ad6 (patch) | |
tree | ba63998ec306983d87594195d60ecb0abb6ea5d1 /test/auth | |
parent | 324d041d5c5cbcdf0083dcd802144a57443789f6 (diff) | |
download | chessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.tar.gz chessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.zip |
Discord notifs (#14)
* Add role id to config
* Add discord notifications for games
* Fix discord discriminant tests
Diffstat (limited to 'test/auth')
-rw-r--r-- | test/auth/password_test.exs | 4 | ||||
-rw-r--r-- | test/auth/pubkey_test.exs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/auth/password_test.exs b/test/auth/password_test.exs index 4072293..86c3758 100644 --- a/test/auth/password_test.exs +++ b/test/auth/password_test.exs @@ -2,7 +2,7 @@ defmodule Chessh.Auth.PasswordAuthenticatorTest do use ExUnit.Case alias Chessh.{Player, Repo} - @valid_user %{username: "logan", password: "password", discord_id: "1"} + @valid_user %{username: "lizzy#0003", password: "password", discord_id: "1"} setup_all do Ecto.Adapters.SQL.Sandbox.checkout(Repo) @@ -26,7 +26,7 @@ defmodule Chessh.Auth.PasswordAuthenticatorTest do end test "Password can authenticate a user instance" do - player = Repo.get_by(Player, username: "logan") + player = Repo.get_by(Player, username: "lizzy#0003") assert Chessh.Auth.PasswordAuthenticator.authenticate( player, diff --git a/test/auth/pubkey_test.exs b/test/auth/pubkey_test.exs index 690dfdf..97a1695 100644 --- a/test/auth/pubkey_test.exs +++ b/test/auth/pubkey_test.exs @@ -2,7 +2,7 @@ defmodule Chessh.Auth.PublicKeyAuthenticatorTest do use ExUnit.Case alias Chessh.{Key, Repo, Player} - @valid_user %{username: "logan", password: "password", discord_id: "2"} + @valid_user %{username: "lizzy#0003", password: "password", discord_id: "2"} @valid_key %{ name: "The Gamer Machine", key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/2LOJGGEd/dhFgRxJ5MMv0jJw4s4pA8qmMbZyulN44" |