Skip to content

Commit e05a753

Browse files
PavelDrobekosnipso
authored andcommitted
Run tests with eap73
1 parent f7bb9ef commit e05a753

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

services/functional-tests/pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<arquillian-cube-openshift.version>1.17.1</arquillian-cube-openshift.version>
1717
<assertj-core.version>3.11.1</assertj-core.version>
1818
<jetty-client.version>9.4.12.v20180830</jetty-client.version>
19-
<version.chameleon>1.0.0.CR2</version.chameleon>
2019
<org.apache.maven.user-settings>maven-settings.xml</org.apache.maven.user-settings>
2120
<wildfly-creaper-core.version>1.1.0</wildfly-creaper-core.version>
2221
</properties>
@@ -41,6 +40,12 @@
4140
</dependencyManagement>
4241

4342
<dependencies>
43+
<dependency>
44+
<groupId>org.wildfly.arquillian</groupId>
45+
<artifactId>wildfly-arquillian-container-managed</artifactId>
46+
<version>2.1.1.Final</version>
47+
<scope>test</scope>
48+
</dependency>
4449
<!-- https://github.com/arquillian/arquillian-cube/blob/master/docs/kubernetes.adoc#dealing-with-version-conflicts -->
4550
<dependency>
4651
<groupId>org.infinispan</groupId>
@@ -92,12 +97,6 @@
9297
<artifactId>arquillian-junit-container</artifactId>
9398
<scope>test</scope>
9499
</dependency>
95-
<dependency>
96-
<groupId>org.arquillian.container</groupId>
97-
<artifactId>arquillian-container-chameleon</artifactId>
98-
<version>${version.chameleon}</version>
99-
<scope>test</scope>
100-
</dependency>
101100
<dependency>
102101
<groupId>org.jboss.shrinkwrap.resolver</groupId>
103102
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>

services/functional-tests/src/test/java/org/infinispan/online/service/scaling/ScalingTester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void scaleUpStatefulSet(int numReplicas, String statefulSetName) {
1414

1515
public void scaleDownStatefulSet(int numReplicas, String statefulSetName) {
1616
CommandLine.scaleStatefulSet(statefulSetName, numReplicas);
17-
READINESS_CHECK.waitUntilTargetNumberOfReplicasAreReady(statefulSetName, 1);
17+
READINESS_CHECK.waitUntilTargetNumberOfReplicasAreReady(statefulSetName, numReplicas);
1818
}
1919

2020
}

services/functional-tests/src/test/java/org/infinispan/online/service/utils/ReadinessCheck.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.infinispan.online.service.utils;
22

3+
import java.util.Arrays;
34
import java.util.HashSet;
45
import java.util.Set;
56
import java.util.function.Predicate;
@@ -42,7 +43,7 @@ public void waitUntilAllPodsAreReady() {
4243

4344
if (numReady + numNotReady == numAll) {
4445
log.infof("Expected %d pods to be ready, but %d are not ready (all pods are %d)", numReady, numNotReady, numAll);
45-
log.infof("Not ready: %s", notReadyPods);
46+
log.infof("Not ready: %s", Arrays.toString(notReadyPods.stream().map(p -> p.getMetadata().getName()).toArray()));
4647
return notReadyPods.isEmpty();
4748
}
4849

@@ -66,7 +67,7 @@ public void waitUntilAllPodsAreReady(int expectedNumPods) {
6667

6768
if (numReady != expectedNumPods) {
6869
log.infof("Expected %d pods to be ready: ready=%d,notReady=%d,all=%d", expectedNumPods, numReady, numNotReady, numAll);
69-
log.infof("Not ready: %s", notReadyPods);
70+
log.infof("Not ready: %s", Arrays.toString(notReadyPods.stream().map(p -> p.getMetadata().getName()).toArray()));
7071

7172
if (numReady + numNotReady != expectedNumPods) {
7273
log.infof("There is a mismatch between ready and not ready Pods. numberReadyPods=%d, numberNotReadyPods=%d, numUnknown=%d, numberAllPods=%d", numReady, numNotReady, numUnknown, numAll);

services/functional-tests/src/test/resources/arquillian.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<container qualifier="testrunner" mode="suite" default="true">
4747
<!-- Pod running remote tests. -->
4848
<configuration>
49-
<property name="chameleonTarget">jboss eap:7.0:remote</property>
49+
<property name="allowConnectingToRunningServer">true</property>
5050
<property name="username">admin</property>
5151
<property name="password">Admin#70365</property>
5252
</configuration>

services/functional-tests/src/test/resources/eap7-testrunner.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ spec:
1717
- "/opt/eap/bin/readinessProbe.sh"
1818
initialDelaySeconds: 60
1919
timeoutSeconds: 10
20-
periodSeconds: 20
20+
periodSeconds: 5
2121
successThreshold: 2
2222
failureThreshold: 5
23-
image: "${DOCKER_REGISTRY_REDHAT}jboss-eap-7/eap71-openshift:1.3-10"
23+
image: "${DOCKER_REGISTRY_REDHAT}rh-osbs/jboss-eap-7-eap73-openjdk11-openshift-rhel8:7.3.0"
2424
ports:
2525
- containerPort: 8080
2626
protocol: TCP

0 commit comments

Comments
 (0)