Skip to content

Commit

Permalink
ADD IT test for wars #110 (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko authored Sep 23, 2023
1 parent 7bc10f9 commit 7b24f6a
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
47 changes: 47 additions & 0 deletions opendj-dsml-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,53 @@
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven3-plugin</artifactId>
<version>1.10.9</version>
<extensions>true</extensions>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<container>
<containerId>tomcat9x</containerId>
<type>embedded</type>
<systemProperties>
<file.encoding>UTF-8</file.encoding>
</systemProperties>
<timeout>350000</timeout>
</container>
<deployables>
<deployable>
<type>war</type>
<properties>
<context>dsml</context>
</properties>
<!-- <pingURL>http://localhost:8080/dsml/</pingURL> only POST-->
</deployable>
</deployables>
<configuration>
<properties>
<cargo.rmi.port>8206</cargo.rmi.port>
<cargo.jvmargs>-XX:+UseG1GC -server</cargo.jvmargs>
</properties>
</configuration>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
47 changes: 47 additions & 0 deletions opendj-rest2ldap-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,53 @@
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven3-plugin</artifactId>
<version>1.10.9</version>
<extensions>true</extensions>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<container>
<containerId>tomcat9x</containerId>
<type>embedded</type>
<systemProperties>
<file.encoding>UTF-8</file.encoding>
</systemProperties>
<timeout>350000</timeout>
</container>
<deployables>
<deployable>
<type>war</type>
<properties>
<context>rest2ldap</context>
</properties>
<pingURL>http://localhost:8080/rest2ldap/</pingURL>
</deployable>
</deployables>
<configuration>
<properties>
<cargo.rmi.port>8206</cargo.rmi.port>
<cargo.jvmargs>-XX:+UseG1GC -server</cargo.jvmargs>
</properties>
</configuration>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Rest2LdapHttpApplication() {
final URL configUrl = getClass().getResource("/config.json");
this.configDirectory = configUrl != null ? new File(configUrl.toURI()).getParentFile() : null;
} catch (final URISyntaxException e) {
throw new IllegalStateException(e);
throw new IllegalStateException(""+getClass().getResource("/config.json"),e);
}
this.schema = Schema.getDefaultSchema();
}
Expand Down

0 comments on commit 7b24f6a

Please sign in to comment.