From eda4231e2d5eacef9734f224657e5fb834d45acd Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Fri, 4 Dec 2026 22:23:57 -0600 Subject: [PATCH] Test OpsProof intended login redirect --- apps/opsproof/overlay/tests/feature/authentication_test.go | 2 +- tests/jeannie/test_privacy_services_pipeline.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/opsproof/overlay/tests/feature/authentication_test.go b/apps/opsproof/overlay/tests/feature/authentication_test.go index 1ac086d..3068b5b 100644 --- a/apps/opsproof/overlay/tests/feature/authentication_test.go +++ b/apps/opsproof/overlay/tests/feature/authentication_test.go @@ -25,7 +25,7 @@ func TestDexLoginRequiresAnAllowedVerifiedOperator(t *testing.T) { Email: "operator@example.test", EmailVerified: true, }) - allowed.WithoutRedirects().Get("/auth/dex/callback").AssertRedirect("/") + allowed.WithoutRedirects().Get("/auth/dex/callback").AssertRedirect("http://example.com/incidents/cluster/n8n") allowed.Get("/").AssertOK().AssertInertia("Welcome").AssertProp("operator.authenticated", true) } diff --git a/tests/jeannie/test_privacy_services_pipeline.py b/tests/jeannie/test_privacy_services_pipeline.py index 363c4d5..ad1927a 100644 --- a/tests/jeannie/test_privacy_services_pipeline.py +++ b/tests/jeannie/test_privacy_services_pipeline.py @@ -150,6 +150,7 @@ class OpsProofPipelineTests(unittest.TestCase): ROOT / "apps/opsproof/overlay/tests/feature/authentication_test.go" ).read_text(encoding="utf-8") self.assertIn('t.Setenv("OPSPROOF_OPERATOR_EMAILS"', auth_test) + self.assertIn('AssertRedirect("http://example.com/incidents/cluster/n8n")', auth_test) routes = (ROOT / "apps/opsproof/overlay/routes/web.go").read_text( encoding="utf-8"