From: Vsevolod Stakhov Date: Sat, 7 Feb 2026 09:57:57 +0000 (+0000) Subject: [Fix] tests: Update URL expectation to match percent-encoded spaces X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Frspamd.git [Fix] tests: Update URL expectation to match percent-encoded spaces After 9f3a41069 URL tostring re-encodes spaces as %20, so the functional test must expect the encoded form. --- diff --git a/test/functional/cases/260_regex.robot b/test/functional/cases/260_regex.robot index d5055b0798..3e43b51573 100644 --- a/test/functional/cases/260_regex.robot +++ b/test/functional/cases/260_regex.robot @@ -14,7 +14,7 @@ ${UTF_MESSAGE} ${RSPAMD_TESTDIR}/messages/utf.eml *** Test Cases *** -Newlines +Newlines Scan File ${MESSAGE} Expect Symbol SA_BODY_WORD Expect Symbol SA_BODY_WORD_WITH_SPACE @@ -24,7 +24,7 @@ Newlines Expect Symbol SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 Expect Symbol SA_BODY_WORD_WITH_SPACE_AND_DOT Expect Symbol With Option FOUND_URL https://google.com/maps/ - Expect Symbol With Option FOUND_URL https://www.google.com/search?q\=hello world&oq\=hello world&aqs\=chrome..69i57j0l5.3045j0j7&sourceid\=chrome&ie\=UTF-8 + Expect Symbol With Option FOUND_URL https://www.google.com/search?q\=hello%20world&oq\=hello%20world&aqs\=chrome..69i57j0l5.3045j0j7&sourceid\=chrome&ie\=UTF-8 Expect Symbol With Option FOUND_URL https://github.com/google/sanitizers/wiki/AddressSanitizer Dynamic Config