You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2022/04/04 09:42:00 UTC

[jira] [Created] (SLING-11244) Update Sling XSS tests to use data providers (or similar)

Robert Munteanu created SLING-11244:
---------------------------------------

             Summary: Update Sling XSS tests to use data providers (or similar)
                 Key: SLING-11244
                 URL: https://issues.apache.org/jira/browse/SLING-11244
             Project: Sling
          Issue Type: Improvement
          Components: XSS Protection API
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
             Fix For: XSS Protection API 2.2.20


The {{AntiSamyPolicyTest}} and {{XSSFilterImplTest}} use multiple sources of data and for loops to validate behaviour.

This works, and at the same time if we have multiple failures we only get notified of the first one. With major refactoring (such as SLING-7231) we could use a way of seeing how much of a test case fails.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)