]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] tests: Update URL expectation to match percent-encoded spaces
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 Feb 2026 09:57:57 +0000 (09:57 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 Feb 2026 09:57:57 +0000 (09:57 +0000)
After 9f3a41069 URL tostring re-encodes spaces as %20, so the
functional test must expect the encoded form.

test/functional/cases/260_regex.robot

index d5055b07987af42815f88e2ec5a022db564af9e7..3e43b51573e8c657ac9416100c7b1001cfcc1a90 100644 (file)
@@ -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