summaryrefslogtreecommitdiff
path: root/test/schema
diff options
context:
space:
mode:
Diffstat (limited to 'test/schema')
-rw-r--r--test/schema/key_test.exs6
-rw-r--r--test/schema/register_test.exs8
2 files changed, 7 insertions, 7 deletions
diff --git a/test/schema/key_test.exs b/test/schema/key_test.exs
index 6dbb574..4b62d7f 100644
--- a/test/schema/key_test.exs
+++ b/test/schema/key_test.exs
@@ -4,17 +4,17 @@ defmodule Chessh.Schema.KeyTest do
alias Chessh.Key
@valid_attrs %{
- name: "Logan's Key",
+ name: "Lizzy's Key",
key:
{{{:ECPoint,
<<159, 246, 44, 226, 70, 24, 71, 127, 118, 17, 96, 71, 18, 121, 48, 203, 244, 140, 156,
56, 179, 138, 64, 242, 169, 140, 109, 156, 174, 148, 222, 56>>},
- {:namedCurve, {1, 3, 101, 112}}}, [comment: 'logan@yagami']}
+ {:namedCurve, {1, 3, 101, 112}}}, [comment: 'lizzy@yagami']}
}
@valid_key_attrs %{
name: "asdf key",
key:
- "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC7Mpf2QIL32MmKxcrXAoZM3l7/hBy+8d+WqTRMun+tC/XYNiXSIDuZv01an3D1d22fmSpZiprFQzjB4yEz23qw= logan@yagami"
+ "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC7Mpf2QIL32MmKxcrXAoZM3l7/hBy+8d+WqTRMun+tC/XYNiXSIDuZv01an3D1d22fmSpZiprFQzjB4yEz23qw= lizzy@yagami"
}
@invalid_key_attrs %{
name: "An Invalid Key",
diff --git a/test/schema/register_test.exs b/test/schema/register_test.exs
index 6d32769..40dc210 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", discord_id: "4"}
+ @valid_user %{username: "lizzy#0003", 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"}
+ @invalid_password %{username: "bruh#0003", password: "pass", discord_id: "6"}
+ @repeated_username %{username: "lizzy#0003", password: "password", discord_id: "6"}
test "Password must be at least 8 characters and username must be at least 2" do
refute Player.registration_changeset(%Player{}, @invalid_password).valid?
@@ -40,7 +40,7 @@ defmodule Chessh.Auth.UserRegistrationTest do
refute changeset.changes.hashed_password == @valid_user.password
end
- test "Username is uniquely case insensitive" do
+ test "Username is uniquely case sensitive" do
assert Repo.insert(Player.registration_changeset(%Player{}, @valid_user))
assert {:error,