You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2014/07/18 15:14:33 UTC

svn commit: r916670 - in /websites/staging/sling/trunk/content: ./ documentation/bundles/sling-health-check-tool.html

Author: buildbot
Date: Fri Jul 18 13:14:33 2014
New Revision: 916670

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/bundles/sling-health-check-tool.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jul 18 13:14:33 2014
@@ -1 +1 @@
-1610348
+1611639

Modified: websites/staging/sling/trunk/content/documentation/bundles/sling-health-check-tool.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/sling-health-check-tool.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/sling-health-check-tool.html Fri Jul 18 13:14:33 2014
@@ -162,6 +162,7 @@ as described below.</p>
 <li><code>org.apache.sling.hc.jmx</code> provides JMX MBeans that execute <code>HealthCheck</code>s.</li>
 <li><code>org.apache.sling.junit.healthcheck</code> provides a <code>HealthCheck</code> service that executes JUnit tests in the server-side OSGi context.</li>
 <li><code>org.apache.sling.hc.samples</code> provides sample OSGi configurations and <code>HealthCheck</code> services. The sample configurations are provided as Sling content, so the Sling Installer is required to activate them.</li>
+<li><code>org.apache.sling.hc.junit.bridge</code> makes selected Health Checks available as server-side JUnit tests. See below for more info. </li>
 </ul>
 <h2 id="out-of-the-box-healthcheck-services">Out-of-the-box <code>HealthCheck</code> services</h2>
 <p>The following default <code>HealthCheck</code> services are provided by the <code>org.apache.sling.hc.core</code> bundle: </p>
@@ -210,8 +211,19 @@ domain <code>org.apache.sling.healthchec
 <p>The MBean gives access to the <code>Result</code> and the log, as shown on the screenshot below.   </p>
 <p>See the example configurations of the <code>org.apache.sling.hc.samples</code> for more details.</p>
 <p><img alt="JConsole showing Sling Health Check MBeans" src="jconsole-hc.jpg" /></p>
+<h2 id="health-checks-as-server-side-junit-tests">Health Checks as server-side JUnit tests</h2>
+<p>The <code>org.apache.sling.hc.junit.bridge</code> bundle makes selected Health Checks available as server-side JUnit tests. </p>
+<p>It requires the <code>org.apache.sling.junit.core bundle</code> which provides the server-side JUnit tests infrastructure.</p>
+<p>The idea is to implement the smoke tests of your system, for example, as health checks. You can then run them
+as part of integration testing, using the  <a href="/documentation/development/sling-testing-tools.html">Sling Testing Tools</a><br />
+remote testing utilities, and also as plain Health Checks for monitoring or troubleshooting Sling instances.</p>
+<p>To use this module, configure sets of tags at <code>/system/console/configMgr/org.apache.sling.hc.junitbridge.HealthCheckTestsProvider</code>
+using the standard <code>includeThisTag,-omitThatTag</code> syntax, and JUnit tests will be available at /system/sling/junit/HealthChecks.html 
+to run the corresponding Health Checks.</p>
+<p>To run the Health Check tests at build time, see the <a href="http://svn.apache.org/repos/asf/sling/trunk/testing/samples/integration-tests">testing/samples/integration-tests</a>
+sample module.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1600947 by dklco on Fri, 6 Jun 2014 16:07:34 +0000
+        Rev. 1611639 by bdelacretaz on Fri, 18 Jul 2014 13:14:23 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project