From 49618a00cedd29640b6bb08da118226ff6aadc4e Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Fri, 23 Aug 2024 08:14:22 +0200 Subject: [PATCH] Updating the test to note the behavioural change --- .../src/test/java/jenkins/console/ConsoleUrlProviderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/test/java/jenkins/console/ConsoleUrlProviderTest.java b/test/src/test/java/jenkins/console/ConsoleUrlProviderTest.java index b9881fbeddac..9a97ff0748df 100644 --- a/test/src/test/java/jenkins/console/ConsoleUrlProviderTest.java +++ b/test/src/test/java/jenkins/console/ConsoleUrlProviderTest.java @@ -58,9 +58,9 @@ public void getRedirectUrl() throws Exception { // Custom URL without leading slash b.setDescription("custom my/build/console"); assertCustomConsoleUrl(r.contextPath + "/my/build/console", b); - // Custom URL with leading slash + // Custom URL with leading slash -> not supported, falls back to default b.setDescription("custom /my/build/console"); - assertCustomConsoleUrl(r.contextPath + "/my/build/console", b); + assertCustomConsoleUrl(r.contextPath + '/' + b.getUrl() + "console", b); // Default URL is used when extensions throw exceptions. b.setDescription("NullPointerException"); assertCustomConsoleUrl(r.contextPath + '/' + b.getUrl() + "console", b);