[
https://issues.apache.org/jira/browse/SLING-9929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17237991#comment-17237991
]
Bertrand Delacretaz commented on SLING-9929:
--------------------------------------------
I have a working example at
[https://github.com/apache/sling-org-apache-sling-servlets-annotations-it/tree/SLING-9929]
I had to add some extra bundles in the configuration method, below.
I haven't analyzed why those are needed, once we clarify we might add options
to {{org.apache.sling.testing.paxexam.TestSupport}} to select "normal" or
{{PaxExamServer}} mode.
{code}
return composite(
// not using this as it seems to pull in some unwanted pax exam dependencies
//super.baseConfiguration(),
slingQuickstartOakTar(workingDirectory, httpPort),
testBundle("bundle.filename"),
logback(),
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.log").version("1.2.4"),
mavenBundle().groupId("log4j").artifactId("log4j").version("1.2.17"),
mavenBundle().groupId("org.apache.aries.spifly").artifactId("org.apache.aries.spifly.dynamic.framework.extension").version("1.3.2"),
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.webconsole.plugins.ds").version("2.1.0")
).getOptions();
{code}
> Use PaxExamServer for HTTP-based integration testing
> ----------------------------------------------------
>
> Key: SLING-9929
> URL: https://issues.apache.org/jira/browse/SLING-9929
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing PaxExam 3.1.0
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> We've discussed this in SLING-7993 and I have created a minimal example (with
> Karate, but other HTTP clients work similarly) at
> [https://github.com/bdelacretaz/karate-pax-exam]
> This ticket is meant to coordinate efforts around how to use the
> {{PaxExamServer}} utility to run "out-of-process" tests via HTTP against a
> minimal Sling instance setup using the
> https://github.com/apache/sling-org-apache-sling-testing-paxexam/ tools.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)