[
https://issues.apache.org/jira/browse/SLING-7993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200045#comment-17200045
]
Bertrand Delacretaz edited comment on SLING-7993 at 9/22/20, 12:39 PM:
-----------------------------------------------------------------------
I did a quick test in the environment of the graphql-core module and the
{{PaxExamServer}} rule is present indeed, wouldn't that work for you?
If I run the below code I correctly get an error message "missing requirement
[org.apache.sling.engine..." in the test logs, which indicates that the rule
starts the OSGi framework.
Note also that we do run HTTP tests in the same module, "from the inside" so
not optimal but that works. Using HTTPClient for now.
{code:java}
public class PaxExamServerIT {
@ClassRule
public static PaxExamServer serverRule = new PaxExamServer();
@Configuration
public Option[] configuration() {
return new Option[] {
mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.engine").version("2.6.0")
};
}
@Test
public void testNothing() throws Exception {
}
}
{code}
was (Author: bdelacretaz):
I did a quick test in the environment of the graphql-core module and the
{{PaxExamServer}} rule is present indeed, wouldn't that work for you?
If I run the below code I correctly get an error message "missing requirement
[org.apache.sling.engine..." in the test logs, which indicates that the rule
tries starts the OSGi framework.
Note also that we do run HTTP tests in the same module, "from the inside" so
not optimal but that works. Using HTTPClient for now.
{code}
public class PaxExamServerIT {
@ClassRule
public static PaxExamServer serverRule = new PaxExamServer();
@Configuration
public Option[] configuration() {
return new Option[] {
mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.engine").version("2.6.0")
};
}
@Test
public void testNothing() throws Exception {
}
}
{code}
> 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)