Skip to content

Commit

Permalink
Re-enable OpenLiberty Tests with RESTEasy
Browse files Browse the repository at this point in the history
Signed-off-by: Erdle, Tobias <tobi.erdle@gmail.com>
  • Loading branch information
erdlet committed Apr 13, 2021
1 parent 57dc380 commit 4d976d4
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 102 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The following sections describe how you test Eclipse Krazo against them. At the

- Glassfish 8
- WildFly 22.x.x
- OpenLiberty 21.*

### Preconditions
- JDK 11
Expand All @@ -31,6 +32,13 @@ To run the Krazo testsuite with WildFly, you need to follow these steps:
2. Start WildFly with `sh standalone.sh --debug`. This enables you to remote-debug the Arquillian tests.
3. Go into the `testsuite` package of Eclipse Krazo and execute `mvn clean integration-test -Ptestsuite-wildfly`

### OpenLiberty
To run the Krazo testsuite with OpenLiberty, you need to follow these steps. Please note that this process has been tested with 20.x only.

Download OpenLiberty from the official download page and unzip it.
Replace the file `wlp/templates/servers/defaultServer/server.xml` with `.travis/wlp-server-template.xml` from the Eclipse Krazo repository.
Go into the testsuite package of Eclipse Krazo and execute `mvn clean integration-test -Ptestsuite-liberty -Dliberty.home=c:/somewhere/wlp/`. Please make sure to replace c:/somewhere/wlp/ with the absolute path to the unpacked OpenLiberty distribution.

### Troubleshooting

#### Tests are failing locally but not in Jenkins
Expand Down
92 changes: 23 additions & 69 deletions tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,30 +213,25 @@
</dependencies>
</profile>

<!-- Run TCK against TomEE -->
<!-- Run TCK against Open Liberty -->
<profile>
<id>tck-tomee</id>
<id>tck-liberty</id>
<activation>
<property>
<name>tck-env</name>
<value>tomee</value>
<value>liberty</value>
</property>
</activation>
<properties>
<tomee.version>9.0.0-M2</tomee.version>
<tomee.classifier>webprofile</tomee.classifier>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<dependenciesToScan>jakarta.mvc.tck:mvc-tck-tests</dependenciesToScan>
<systemPropertyVariables>
<tomee.version>${tomee.version}</tomee.version>
<arquillian.launch>tomee</arquillian.launch>
<arquillian.launch>liberty</arquillian.launch>
<jakarta.mvc.tck.api.BaseArchiveProvider>
org.eclipse.krazo.tck.tomee.TomeeArchiveProvider
org.eclipse.krazo.tck.liberty.LibertyArchiveProvider
</jakarta.mvc.tck.api.BaseArchiveProvider>
</systemPropertyVariables>
</configuration>
Expand All @@ -245,68 +240,27 @@
</build>
<dependencies>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>arquillian-tomee-remote</artifactId>
<version>${tomee.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>apache-tomee</artifactId>
<version>${tomee.version}</version>
<classifier>${tomee.classifier}</classifier>
<type>zip</type>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-managed-jakarta</artifactId>
<version>2.0.0-M1</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

<!-- Run TCK against Open Liberty -->
<!-- <profile> -->
<!-- <id>tck-liberty</id> -->
<!-- <activation> -->
<!-- <property> -->
<!-- <name>tck-env</name> -->
<!-- <value>liberty</value> -->
<!-- </property> -->
<!-- </activation> -->
<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <artifactId>maven-surefire-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <dependenciesToScan>jakarta.mvc.tck:mvc-tck-tests</dependenciesToScan> -->
<!-- <systemPropertyVariables> -->
<!-- <arquillian.launch>liberty</arquillian.launch> -->
<!-- <jakarta.mvc.tck.api.BaseArchiveProvider> -->
<!-- org.eclipse.krazo.tck.liberty.LibertyArchiveProvider -->
<!-- </jakarta.mvc.tck.api.BaseArchiveProvider> -->
<!-- </systemPropertyVariables> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->
<!-- <dependencies> -->
<!-- <dependency> -->
<!-- <groupId>io.openliberty.arquillian</groupId> -->
<!-- <artifactId>arquillian-liberty-managed-jakarta</artifactId> -->
<!-- <version>2.0.0-M1</version> -->
<!-- <scope>test</scope> -->
<!-- </dependency> -->
<!-- </dependencies> -->

<!-- <repositories> -->
<!-- <repository> -->
<!-- <id>sonatype-oss-snapshots</id> -->
<!-- <name>Sonatype OSS Nexus Snapshots</name> -->
<!-- <url>https://oss.sonatype.org/content/repositories/snapshots/</url> -->
<!-- <releases> -->
<!-- <enabled>false</enabled> -->
<!-- </releases> -->
<!-- <snapshots> -->
<!-- <enabled>true</enabled> -->
<!-- </snapshots> -->
<!-- </repository> -->
<!-- </repositories> -->
<!-- </profile> -->
<repositories>
<repository>
<id>sonatype-oss-snapshots</id>
<name>Sonatype OSS Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>

</profiles>

Expand Down
66 changes: 33 additions & 33 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,41 +336,41 @@
</build>
</profile>

<!-- <profile> -->
<!-- <id>testsuite-liberty</id> -->
<profile>
<id>testsuite-liberty</id>

<!-- <properties> -->
<!-- <skipITs>false</skipITs> -->
<!-- </properties> -->
<properties>
<skipITs>false</skipITs>
</properties>

<!-- <dependencies> -->
<!-- <dependency> -->
<!-- <groupId>io.openliberty.arquillian</groupId> -->
<!-- <artifactId>arquillian-liberty-managed</artifactId> -->
<!-- <version>1.0.6</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.eclipse.krazo</groupId> -->
<!-- <artifactId>krazo-cxf</artifactId> -->
<!-- <version>${project.version}</version> -->
<!-- <scope>runtime</scope> -->
<!-- </dependency> -->
<!-- </dependencies> -->
<dependencies>
<dependency>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-managed</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-resteasy</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <artifactId>maven-failsafe-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <skipITs>false</skipITs> -->
<!-- <systemProperties> -->
<!-- <arquillian.launch>liberty</arquillian.launch> -->
<!-- <testsuite.profile>testsuite-liberty</testsuite.profile> -->
<!-- </systemProperties> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->
<!-- </profile> -->
<build>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skipITs>false</skipITs>
<systemProperties>
<arquillian.launch>liberty</arquillian.launch>
<testsuite.profile>testsuite-liberty</testsuite.profile>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 4d976d4

Please sign in to comment.