File tree Expand file tree Collapse file tree 10 files changed +46
-46
lines changed
jolokia/8.2/tests/features
s2i/core/api/tests/features Expand file tree Collapse file tree 10 files changed +46
-46
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ Feature: Openshift OpenJDK Jolokia tests
88 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=
99
1010 Scenario : Check jolokia port is available
11- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
11+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
1212 Then check that port 8778 is open
1313 And inspect container
1414 | path | value |
1515 | /Config /ExposedPorts | 8778 /tcp |
1616
1717 Scenario : Ensure Jolokia diagnostic options work correctly
18- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
18+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
1919 | variable | value |
2020 | JAVA_ARGS | Hello from CTF test |
2121 | JAVA_DIAGNOSTICS | true |
Original file line number Diff line number Diff line change @@ -62,5 +62,5 @@ Feature: OPENJDK-559 JVM Memory tests
6262 @ubi8/openjdk-17
6363 @ubi8/openjdk-21
6464 Scenario : Ensure Maven doesn't use MaxRAMPercentage=80
65- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from spring-boot-sample-simple
65+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from spring-boot-sample-simple
6666 Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ Feature: Openshift OpenJDK S2I tests
66
77 # test incremental builds
88 Scenario : Check incremental builds cache .m2
9- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
9+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
1010 | variable | value |
1111 | JAVA_ARGS | Hello from CTF test |
1212 Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
1313 And s2i build log should contain Downloading from central:
14- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet with env and incremental
14+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet with env and incremental
1515 | variable | value |
1616 | JAVA_ARGS | Hello from CTF test |
1717 Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
Original file line number Diff line number Diff line change 33@ubi8/openjdk-21
44Feature : Openshift OpenJDK S2I tests (Quarkus-based )
55 Scenario : Ensure that run-env.sh placed in the JAVA_APP_DIR is sourced in the run script before launching java
6- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
6+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
77 | variable | value |
88 | S2I_SOURCE_DATA_DIR | ./ |
99 | S2I_TARGET_DATA_DIR | /deployments |
Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ Feature: Openshift OpenJDK Runtime tests
3636 | JAVA_APP_DIR | /nope |
3737 Then available container log should contain ERROR No directory /nope found for auto detection
3838 Scenario : Ensure JVM_ARGS is no longer present in the run script
39- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
39+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
4040 Then file /usr/local/s2i/run should not contain JVM_ARGS
4141
4242 Scenario : Ensure JAVA_ARGS are passed through to the running java application
43- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
43+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
4444 | variable | value |
4545 | JAVA_ARGS | Hello from CTF test |
4646 Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
4747
4848 Scenario : Ensure diagnostic options work correctly
49- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
49+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
5050 | variable | value |
5151 | JAVA_ARGS | Hello from CTF test |
5252 | JAVA_DIAGNOSTICS | true |
Original file line number Diff line number Diff line change 44@ubi8/openjdk-21
55Feature : Openshift S2I tests
66 Scenario : Check networkaddress.cache.negative.ttl has been set correctly
7- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from binary-cli-security-property
7+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from binary-cli-security-property
88 Then s2i build log should contain networkaddress.cache.negative.ttl=0
Original file line number Diff line number Diff line change 55Feature : Openshift OpenJDK S2I tests (Quarkus-based )
66
77 Scenario : Ensure Quarkus CDS doesn't fail due to timestamp mismatch (OPENDJK-1673)
8- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from getting-started
8+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from getting-started
99 Then container log should not contain A jar file is not the one used while building the shared archive file
1010
1111 Scenario : quarkus fast-jar layout works out-of-the-box (OPENJDK-1957)
12- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
12+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
1313 Then container log should contain INFO quarkus fast-jar package type detected
1414 And container log should contain -jar /deployments/quarkus-app/quarkus-run.jar
1515 And container log should contain (main) getting-started 1.0.0-SNAPSHOT on JVM (powered by Quarkus
@@ -18,7 +18,7 @@ Feature: Openshift OpenJDK S2I tests (Quarkus-based)
1818 And container log should not contain no main manifest attribute
1919
2020 Scenario : quarkus uber-jar layout works out-of-the-box (OPENJDK-1957)
21- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i with env
21+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i with env
2222 | variable | value |
2323 | QUARKUS_PACKAGE_TYPE | uber -jar |
2424 Then container log should not contain INFO quarkus fast-jar package type detected
Original file line number Diff line number Diff line change 55Feature : Openshift S2I tests
66 # OPENJDK-84 - /tmp/src should not be present after build
77 Scenario : run an s2i build and check that /tmp/src has been removed afterwards
8- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from spring-boot-sample-simple
8+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from spring-boot-sample-simple
99 Then run stat /tmp/src in container and immediately check its output does not contain File:
1010
1111 # OPENJDK-2824 - ensure binary-only s2i doesn't try to change timestamps of
1212 # S2I_TARGET_DEPLOYMENTS_DIR. Use /var/tmp as a directory where attempting to
1313 # will fail. This simulates the s2i process running as a random UID, which can't
1414 # change timestamps on the default directory, /deployments.
1515 Scenario : Ensure binary-only build doesn't fail trying to set timestamp of S2I_TARGET_DEPLOYMENTS_DIR (OPENJDK-2850)
16- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from OPENJDK-2408-bin-custom-s2i-assemble with env
16+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from OPENJDK-2408-bin-custom-s2i-assemble with env
1717 | variable | value |
1818 | S2I_TARGET_DEPLOYMENTS_DIR | /var /tmp |
1919 Then s2i build log should not contain rsync: [generator] failed to set permissions on "/var/tmp/." : Operation not permitted
Original file line number Diff line number Diff line change 44@ubi8/openjdk-21
55Feature : Openshift OpenJDK port tests
66 Scenario : Check ports are available
7- Given s2i build https://github.com/jboss-container-images /openjdk-test-applications from undertow-servlet
7+ Given s2i build https://github.com/rh-openjdk /openjdk-container- test-applications.git from undertow-servlet
88 Then check that port 8080 is open
99 Then check that port 8443 is open
1010 Then inspect container
You can’t perform that action at this time.
0 commit comments