[
https://issues.apache.org/jira/browse/SLING-7993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178979#comment-17178979
]
Bertrand Delacretaz commented on SLING-7993:
--------------------------------------------
Hi Nicolas, for this it's probably easier if the Karate tests run outside of
the OSGi framework, so you don't have to import all the Karate dependencies?
I haven't done that myself yet but it looks like
https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/pages/54263878/Server+Mode is what
you need, there's an example at
https://github.com/ops4j/org.ops4j.pax.exam2/blob/master/itest/osgi/src/it/regression-multi/src/test/java/org/ops4j/pax/exam/regression/multi/server/WabSampleTest.java
There's another more recent example at
https://github.com/ops4j/org.ops4j.pax.exam2/blob/master/drivers/pax-exam-acceptance/src/test/java/org/ops4j/pax/exam/acceptance/AcceptanceTestApiTest.java
which seems to do pretty much the same thing but I haven't found any
documentation about that.
On the Karate side the test instance URL is defined in karate-config.js and
IIRC that can use environment variables.
Note that my Karate example is almost two years old, there's probably been lots
of improvements in the meantime!
> create some karate tests for pipes http api integration tests
> -------------------------------------------------------------
>
> Key: SLING-7993
> URL: https://issues.apache.org/jira/browse/SLING-7993
> Project: Sling
> Issue Type: Improvement
> Components: Extensions, pipes
> Affects Versions: Pipes 3.0.2
> Reporter: Nicolas Peltier
> Priority: Major
> Fix For: Pipes 4.0.0
>
>
> would be nice to have clear and "documenting" karate tests of pipes http API
--
This message was sent by Atlassian Jira
(v8.3.4#803005)