Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16798

Allow to use regex in LogCaptureValidator

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 11.4-rc-1
    • Fix Version/s: None
    • Component/s: Test Framework
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The LogCaptureValidator only allow to perform exact matches in logs. It could be actually pretty useful and more accurate to allow matches with regex, since right now we are forced to truncate some log capture to ensure not having any issue with the versions.
      For example I cannot capture specifically:

      WARN i.g.bonigarcia.wdm.WebDriverManager - There was an error managing geckodriver 0.26.0 (github-production-release-asset-2e65be.s3.amazonaws.com: Temporary failure in name resolution) ... trying again using cache and mirror

      because of the version (0.26.0) which might change, and of the server name which might also change. I'm currently forced to only match the beginning, which might lead to false negative: I might match other errors too. Would be more accurate to be able to express the full warning with some regexes.

        Attachments

          Activity

            People

            Assignee:
            surli Simon Urli
            Reporter:
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: