You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests: de-couple Jolokia testing from other Behave features
Ports check was erroneously checking that the Jolokia port was open
(and wasn't checking 8443). Fix that and remove the Jolokia metadata
port check (which is already duplicated over in the Jolokia feature)
Don't check for Jolokia in container log test in the runtime feature.
Adjust the Jolokia test tagging to cover the correct OpenJDK images.
Also: fix the test! IT did not specify the starting conditions for a
container.
Add a new Jolokia feature that replicates the "runtime" test but
only the Jolokia-specific log check.
Signed-off-by: Jonathan Dowland <[email protected]>
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
7
7
Then run sh -c 'unzip -q -p /usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar META-INF/maven/org.jolokia/jolokia-jvm/pom.properties | grep -F ${JOLOKIA_VERSION}' in container and check its output for version=
8
8
9
-
@jboss-decisionserver-6
10
-
@jboss-processserver-6
11
-
@jboss-webserver-3/webserver30-tomcat7-openshift
12
-
@jboss-webserver-3/webserver31-tomcat7-openshift
13
-
@jboss-webserver-3/webserver30-tomcat8-openshift
14
-
@jboss-webserver-3/webserver31-tomcat8-openshift
15
-
@jboss-amq-6
9
+
@openjdk
10
+
@ubi8/openjdk-8
11
+
@ubi8/openjdk-11
12
+
@redhat-openjdk-18
16
13
Scenario: Check jolokia port is available
17
-
When container is ready
14
+
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
18
15
Then check that port 8778 is open
19
-
Theninspect container
16
+
And inspect container
20
17
| path | value |
21
18
| /Config/ExposedPorts | 8778/tcp |
19
+
20
+
@openjdk
21
+
@ubi8/openjdk-8
22
+
@ubi8/openjdk-11
23
+
@redhat-openjdk-18
24
+
Scenario: Ensure Jolokia diagnostic options work correctly
25
+
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
26
+
| variable | value |
27
+
| JAVA_ARGS | HellofromCTFtest |
28
+
| JAVA_DIAGNOSTICS | true |
29
+
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
30
+
And container log should contain Jolokia: Agent started
0 commit comments