Skip to content

Commit 028fd63

Browse files
committed
updating tests so that they can run with WildFly on OpenShift
1 parent 217260e commit 028fd63

File tree

2 files changed

+46
-11
lines changed

2 files changed

+46
-11
lines changed

pom.xml

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
<artifactId>arquillian-junit-container</artifactId>
4141
<scope>test</scope>
4242
</dependency>
43+
<dependency>
44+
<groupId>org.jboss.resteasy</groupId>
45+
<artifactId>resteasy-client</artifactId>
46+
<version>3.0.5.Final</version>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.jboss.resteasy</groupId>
51+
<artifactId>resteasy-jaxb-provider</artifactId>
52+
<version>3.0.5.Final</version>
53+
<scope>test</scope>
54+
</dependency>
4355
</dependencies>
4456
<build>
4557
<finalName>helloworld</finalName>
@@ -87,19 +99,31 @@
8799
<version>8.1.0.Final</version>
88100
<scope>test</scope>
89101
</dependency>
102+
</dependencies>
103+
</profile>
104+
<profile>
105+
<id>arquillian-wildfly-openshift</id>
106+
<build>
107+
<plugins>
108+
<plugin>
109+
<artifactId>maven-surefire-plugin</artifactId>
110+
<version>2.14.1</version>
111+
<configuration>
112+
<systemPropertyVariables>
113+
<arquillian.launch>arquillian-wildfly-openshift</arquillian.launch>
114+
</systemPropertyVariables>
115+
</configuration>
116+
</plugin>
117+
</plugins>
118+
</build>
119+
<dependencies>
90120
<dependency>
91-
<groupId>org.jboss.resteasy</groupId>
92-
<artifactId>resteasy-client</artifactId>
93-
<version>3.0.5.Final</version>
94-
<scope>test</scope>
95-
</dependency>
96-
<dependency>
97-
<groupId>org.jboss.resteasy</groupId>
98-
<artifactId>resteasy-jaxb-provider</artifactId>
99-
<version>3.0.5.Final</version>
121+
<groupId>org.jboss.arquillian.container</groupId>
122+
<artifactId>arquillian-openshift</artifactId>
123+
<version>1.0.0.Final-SNAPSHOT</version>
100124
<scope>test</scope>
101125
</dependency>
102126
</dependencies>
103-
</profile>
127+
</profile>
104128
</profiles>
105129
</project>

src/test/resources/arquillian.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
3-
<container qualifier="arquillian-wildfly-remote"/>
3+
<container qualifier="arquillian-wildfly-remote"/>
4+
<container qualifier="arquillian-wildfly-openshift">
5+
<configuration>
6+
<property name="namespace">milestogo</property>
7+
<property name="application">mywildfly</property>
8+
<property name="libraDomain">rhcloud.com</property>
9+
<property name="sshUserName">54699516ecb8d41cb8000016</property>
10+
<property name="login">arungupta@redhat.com</property>
11+
<property name="deploymentTimeoutInSeconds">300</property>
12+
<property name="disableStrictHostChecking">true</property>
13+
</configuration>
14+
</container>
415
</arquillian>

0 commit comments

Comments
 (0)