Skip to content

Commit

Permalink
fixup of integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-serjey committed May 28, 2024
1 parent 7f36888 commit 2a9fe2d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,19 @@ jobs:
gradle: '6.9.4'
container: "['jetty9.3','jetty9.4','tomcat85','tomcat9']"

- java: 8
gradle: '6.9.4'
container: "['jetty9.3','jetty9.4','tomcat85','tomcat9']"
toolchainJavaVersion: 21

- java: 11
gradle: '6.9.4'
container: "['jetty9.3','jetty9.4','jetty10','tomcat85','tomcat9']"

- java: 11
gradle: '6.9.4'
container: "['jetty9.3','jetty9.4','jetty10','tomcat85','tomcat9']"
toolchainJavaVersion: 17
toolchainJavaVersion: 21

- java: 17
gradle: '7.6.4'
Expand Down
12 changes: 11 additions & 1 deletion docker_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export common_gradle_args="--console=plain --no-daemon -Porg.gradle.java.install
$common_gradle_args \
-PtestAllContainers="\"['jetty9.3','jetty9.4','jetty10','tomcat85','tomcat9']\"" \
testAll
#

#ci.yml matrix case #3
./docker_gradlew.sh \
Expand All @@ -42,6 +41,17 @@ export common_gradle_args="--console=plain --no-daemon -Porg.gradle.java.install
-PtestAllContainers="\"['jetty9.3','jetty9.4','jetty10','tomcat85','tomcat9']\"" \
-Pspock_version=2.3-groovy-3.0 -PgebVersion=5.1 \
testAll

#ci.yml matrix case #1 + toolchain java v21
./docker_gradlew.sh \
--java 21 --java 8 \
--gradle 6 \
--gradle-home .docker-gradle \
--working-dir integrationTests \
$common_gradle_args \
-PtestAllContainers="\"['jetty9.3','jetty9.4','tomcat85','tomcat9']\"" \
-PtoolchainJavaVersion=21 \
testAllJavaToolchain

#ci.yml matrix case #2 + toolchain java v17
./docker_gradlew.sh \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class PageSpec extends GebReportingSpec {
void setupSpec() {
baseURI = System.getProperty('gretty.baseURI')
toolchainJavaVersion = Objects.requireNonNull(System.getProperty('toolchainJavaVersion'))
?.with({ it == '8' ? '1.8' : it })
}

def 'should get expected static page'() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
VelocityContext context = new VelocityContext();
context.put("contextPath", request.getContextPath());
context.put("today", new java.util.Date());
context.put("javaVersion", System.getProperty("java.vm.version"));
context.put("javaVersion", System.getProperty("java.specification.version"));
PrintWriter out = response.getWriter();
try {
template.merge(context, out);
Expand Down

0 comments on commit 2a9fe2d

Please sign in to comment.