Добавить сессии в Valkey и вход через Basic с Bearer-токеном
This commit is contained in:
@@ -44,9 +44,6 @@ func TestRegisterStoresUserWithPasswordHash(t *testing.T) {
|
||||
if got != u {
|
||||
t.Fatalf("GetByID = %+v, want %+v", got, u)
|
||||
}
|
||||
if ok, err := svc.Exists(ctx, u.ID); err != nil || !ok {
|
||||
t.Fatalf("Exists = %v, %v; want true", ok, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRegisterRejectsInvalidInputAndStoresNothing(t *testing.T) {
|
||||
@@ -129,9 +126,6 @@ func TestGetByIDUnknownIsNotFound(t *testing.T) {
|
||||
if !errors.Is(err, user.ErrNotFound) || apperr.KindOf(err) != apperr.KindNotFound {
|
||||
t.Fatalf("err = %v, want ErrNotFound with KindNotFound", err)
|
||||
}
|
||||
if ok, err := svc.Exists(context.Background(), ident.New()); err != nil || ok {
|
||||
t.Fatalf("Exists = %v, %v; want false, nil", ok, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestExistingIDsReturnsOnlyRegistered(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user