Skip to content

Commit

Permalink
Merge pull request #486 from jmtd/retag-jolokia-tests
Browse files Browse the repository at this point in the history
[OPENJDK-2993] re-tag jolokia Feature
  • Loading branch information
jmtd authored Apr 28, 2024
2 parents 1d7f91b + cea1714 commit e4b427f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions modules/jolokia/8.2/tests/features/jolokia.feature
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
@ubi8/openjdk-8
@ubi8/openjdk-11
# Tests for jboss/container/jolokia
Feature: Openshift OpenJDK Jolokia tests

Scenario: Check Environment variable is correct
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
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=
Scenario: Ensure JOLOKIA_VERSION variable aligns with JAR
When container is started with command sh
Then run sh -c 'jar xf /usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar META-INF/maven/org.jolokia/jolokia-jvm/pom.properties && grep ${JOLOKIA_VERSION} META-INF/maven/org.jolokia/jolokia-jvm/pom.properties' in container and check its output for version=

@ubi8/openjdk-8
@ubi8/openjdk-11
Scenario: Check jolokia port is available
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
Then check that port 8778 is open
And inspect container
| path | value |
| /Config/ExposedPorts | 8778/tcp |

@ubi8/openjdk-8
@ubi8/openjdk-11
Scenario: Ensure Jolokia diagnostic options work correctly
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
| variable | value |
Expand Down

0 comments on commit e4b427f

Please sign in to comment.