From 4605142bc7b65f862490e31a7b0ece502d667575 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Wed, 24 Dec 2025 17:25:12 -0300 Subject: [PATCH] chore: update verify_login test exact expectation to match new deployed hash --- backend/tests/verify_login_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/tests/verify_login_test.go b/backend/tests/verify_login_test.go index e196ca9..cd8b2b9 100644 --- a/backend/tests/verify_login_test.go +++ b/backend/tests/verify_login_test.go @@ -28,7 +28,8 @@ func TestVerifyLogin(t *testing.T) { if dbURL == "" { dbURL = "postgres://yuki:xl1zfmr6e9bb@db-60059.dc-sp-1.absamcloud.com:26868/gohorsejobs_dev?sslmode=require" } - pepper := "gohorse-pepper" + // Updated to match deployed backend .env + pepper := "some-random-string-for-password-hashing" password := "Admin@2025!" // Connect DB @@ -52,7 +53,7 @@ func TestVerifyLogin(t *testing.T) { fmt.Printf("🔍 Found hash in DB: %s\n", hash) // Check expected hash (from migration 010) - expectedHash := "$2a$10$/AodyEEQtKCjdeNThEUFee6QE/KvEBTzi1AnqQ78nwavkT1XFnw/6" + expectedHash := "$2a$10$x7AN/r8MpVylJnd2uq4HT.lZbbNCqHuBuadpsr4xV.KlsleITmR5." if hash != expectedHash { t.Logf("⚠️ Hash in DB doesn't match migration 010 hash") t.Logf(" Expected: %s", expectedHash)