Skip to content

Commit

Permalink
[OPENJDK-2993] Fix jolokia test that used 'unzip'
Browse files Browse the repository at this point in the history
We dropped unzip from the images as nothing else was using it. Rework
the jolokia test that used unzip to use jar instead.  Adjust the test
to not require s2i so it executes much faster and retitle it to be
clearer as to what it is testing.

Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Apr 26, 2024
1 parent 9baeab7 commit cea1714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/jolokia/8.2/tests/features/jolokia.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# 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=

Scenario: Check jolokia port is available
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
Expand Down

0 comments on commit cea1714

Please sign in to comment.