1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From 9ae6226d9cede5339c007fac69da5c7c516d09c9 Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Sun, 4 May 2025 17:25:39 +1200
Subject: Fix test for 2025-04-08 CVE patchset
Patch-Name: upstream_5.0.8_test_web:_patchset_2025-04-08.diff
Author: Best Practical <support@bestpractical.com>
Forwarded: not-needed
Applied: 5.0.8, commit:cb67ffa28333418178cb2f7be3562cb8d1817c63
---
t/web/helpers-http-cache-headers.t | 3 +++
1 file changed, 3 insertions(+)
diff --git a/t/web/helpers-http-cache-headers.t b/t/web/helpers-http-cache-headers.t
index c946daf4..4c4fdcfd 100644
--- a/t/web/helpers-http-cache-headers.t
+++ b/t/web/helpers-http-cache-headers.t
@@ -97,6 +97,9 @@ foreach my $endpoint ( @endpoints ) {
if ( $endpoint =~ m{/Helpers/AssetUpdate} ) {
$m->get_ok( $endpoint . "?id=${asset_id}&Status=allocated" );
}
+ elsif ( $endpoint =~ m{/Helpers/Permalink} ) {
+ $m->get_ok( $endpoint . "?URL=/" );
+ }
else {
$m->get_ok( $endpoint . "?id=${ticket_id}&Status=open&Requestor=root" );
}
|