Apache Sling Launchpad Integration Tests

Clone this repo:
  1. f811df9 SLING-11709 - Set up Jira autolinks to all Sling Github projects by Robert Munteanu · 9 weeks ago master
  2. df6c605 Merge pull request #13 from apache/dependabot/maven/junit-junit-4.13.1 by Eric Norman · 3 months ago
  3. 47846b4 Bump junit from 4.12 to 4.13.1 by dependabot[bot] · 3 months ago
  4. 87ea01b Merge pull request #5 from apache/dependabot/maven/org.apache.httpcomponents-httpclient-4.5.13 by Eric Norman · 3 months ago
  5. a135ab1 Merge pull request #10 from BulkSecurityGeneratorProjectV2/fix/JLL/temporary_file_local_information_disclosure by Eric Norman · 3 months ago

Apache Sling

Build Status Coverage Sonarcloud Status JavaDoc Maven Central launchpad License

Apache Sling Launchpad Integration Tests

This module is part of the Apache Sling project and contains test classes used by the launchpad/testing module.

To run a single test or a specific set of tests against a running Sling instance, use for example:

mvn test -Dtest=UploadFileTest -Dhttp.port=1234

Where UploadFileTest is the test to run. Wildcards are allowed, and test classes are found in the src/main folder (not a typo - that's not src/test as we want to pack the tests in the jar file that we build).

See the <properties> section in pom.xml for additional parameters that the tests use.

Here's another example, running the tests against a Sling instance running on host xyzzy, port 1234, with the Sling main servlet mounted under /foo:

mvn -o -s /dev/null test \
    -Dhttp.port=1234 \
    -Dtest.host=xyzzy \
    -Dhttp.base.path=foo \
    -Dwebdav.workspace.path=foo \
    -Dlaunchpad.readiness.mediatype=.json:application/json \ 

To run or debug tests against the same instance that launchpad/testing module, see that module's README for how to start the test instance.

The standard -Dmaven.surefire.debug option can be used to debug the tests themselves.

Some tests might fail if not using a a Sling instance that's not setup by the launchpad/testing module, as that installs a few additional test bundles.