diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 14:01:35 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 14:04:23 -0700 |
commit | cac78a4f4eced88878e746d96b305ecc62826494 (patch) | |
tree | 33d1d43d7049a30753af82bab600f721e9f8ac67 /test | |
parent | e5d97870a12ec87bd463b7657923bb79d3bcb4cc (diff) | |
download | chessh-cac78a4f4eced88878e746d96b305ecc62826494.tar.gz chessh-cac78a4f4eced88878e746d96b305ecc62826494.zip |
Move to discord oauth
Diffstat (limited to 'test')
-rw-r--r-- | test/auth/password_test.exs | 2 | ||||
-rw-r--r-- | test/auth/pubkey_test.exs | 2 | ||||
-rw-r--r-- | test/schema/register_test.exs | 8 | ||||
-rw-r--r-- | test/ssh/ssh_auth_test.exs | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/test/auth/password_test.exs b/test/auth/password_test.exs index 55d9867..4072293 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", github_id: 1} + @valid_user %{username: "logan", password: "password", discord_id: "1"} setup_all do Ecto.Adapters.SQL.Sandbox.checkout(Repo) diff --git a/test/auth/pubkey_test.exs b/test/auth/pubkey_test.exs index 52d326a..690dfdf 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", github_id: 2} + @valid_user %{username: "logan", password: "password", discord_id: "2"} @valid_key %{ name: "The Gamer Machine", key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/2LOJGGEd/dhFgRxJ5MMv0jJw4s4pA8qmMbZyulN44" diff --git a/test/schema/register_test.exs b/test/schema/register_test.exs index 00ac413..6d32769 100644 --- a/test/schema/register_test.exs +++ b/test/schema/register_test.exs @@ -3,10 +3,10 @@ defmodule Chessh.Auth.UserRegistrationTest do use ExUnit.Case alias Chessh.{Player, Repo} - @valid_user %{username: "logan", password: "password", github_id: 4} - @invalid_username %{username: "a", password: "password", github_id: 7} - @invalid_password %{username: "aasdf", password: "pass", github_id: 6} - @repeated_username %{username: "LoGan", password: "password", github_id: 5} + @valid_user %{username: "logan", password: "password", discord_id: "4"} + @invalid_username %{username: "a", password: "password", discord_id: "7"} + @invalid_password %{username: "aasdf", password: "pass", discord_id: "6"} + @repeated_username %{username: "LoGan", password: "password", discord_id: "5"} test "Password must be at least 8 characters and username must be at least 2" do refute Player.registration_changeset(%Player{}, @invalid_password).valid? diff --git a/test/ssh/ssh_auth_test.exs b/test/ssh/ssh_auth_test.exs index 70a57be..024a54f 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: "logan", password: "password", github_id: 3} + @valid_user %{username: "logan", 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' |