Fix OpsProof Dex redirect assertion
Homelab Main / validate (push) Failing after 1m45s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details

This commit is contained in:
juvenal.diaz 2026-12-05 08:34:42 -06:00
parent 9b3bdc7a12
commit 7ab3bc0ec0
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package feature_test
import (
"net/http"
"testing"
"go.laravel.com/auth/social"
@ -26,7 +27,7 @@ func TestDexLoginRequiresAnAllowedVerifiedOperator(t *testing.T) {
Email: "operator@example.test",
EmailVerified: true,
})
allowed.WithoutRedirects().Get("/auth/dex").AssertRedirect()
allowed.WithoutRedirects().Get("/auth/dex").AssertStatus(http.StatusFound)
allowed.WithoutRedirects().Get("/auth/dex/callback").AssertRedirect("http://example.com/incidents/cluster/n8n")
allowed.Get("/").AssertOK().AssertInertia("Welcome").AssertProp("operator.authenticated", true)
}