Eric Norman created SLING-9764:
----------------------------------

             Summary: Support regex pattern matching of the content for the 
server.ready.path checks
                 Key: SLING-9764
                 URL: https://issues.apache.org/jira/browse/SLING-9764
             Project: Sling
          Issue Type: Improvement
            Reporter: Eric Norman
            Assignee: Eric Norman
             Fix For: Apache Sling Server Setup Tools 1.0.2


Check for a third segment in the property value and if the value is "regexp" 
then use the get#checkContentRegexp api instead of the get#checkContentContains 
api to check if the content contains the value.

For example if you want to use the heath check path to determine if all 
required services are available but you don't want to hard code the number of 
required services, you could use something like this to check for the expected 
pattern: 

 
{code:java}
<server.ready.path.1>/system/health?tags=systemalive&amp;format=json:All \d+ 
required services are available:regexp</server.ready.path.1>{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to