Fix more tests
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-12-29 19:22:08 +11:00
parent acab15ce30
commit 4c1df53fd5
2 changed files with 25 additions and 99 deletions

View File

@@ -152,10 +152,12 @@ class ForwardAuthIntegrationTest < ActionDispatch::IntegrationTest
assert_response 302
location = response.location
# Should redirect to signin on same host with parameters
assert_includes location, "grafana.example.com/signin"
# Should redirect to signin with parameters (rd contains the original URL)
assert_includes location, "/signin"
assert_includes location, "rd="
assert_includes location, "rm=GET"
# The rd parameter should contain the original grafana.example.com URL
assert_includes location, "grafana.example.com"
end
test "return URL functionality after authentication" do