Skip to content

Commit

Permalink
Test more recent versions of Spring Boot
Browse files Browse the repository at this point in the history
  • Loading branch information
mabartos authored and pdrozd committed Feb 17, 2022
1 parent 6c74aee commit 18581ca
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 427 deletions.
2 changes: 1 addition & 1 deletion adapters/oidc/spring-boot2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.0.2.RELEASE</version>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
8 changes: 3 additions & 5 deletions misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,10 +663,8 @@ def mergeTwoGavDictionaries(firstGavDictionary, secondGavDictionary):
"tomcat7.version",
"tomcat8.version",
"tomcat9.version",
"spring-boot15.version",
"spring-boot21.version",
"spring-boot22.version",
"spring-boot23.version",
"spring-boot24.version",
"spring-boot26.version",
"webauthn4j.version",
"org.apache.kerby.kerby-asn1.version",
]
Expand Down Expand Up @@ -771,7 +769,7 @@ def mergeTwoGavDictionaries(firstGavDictionary, secondGavDictionary):
# Skip "frontend.plugin.version" since Keycloak specific
# Skip "docker.maven.plugin.version" since Keycloak specific
# Skip "tomcat7.version", "tomcat8.version", and "tomcat9.version" since Keycloak specific
# Skip "spring-boot15.version", "spring-boot21.version", "spring-boot22.version", and "spring-boot23.version" since Keycloak specific
# Skip "spring-boot24.version" and "spring-boot26.version" since Keycloak specific
# Skip "webauthn4j.version" since Keycloak specific
# Skip "org.apache.kerby.kerby-asn1.version" since Keycloak specific
}
Expand Down
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@
<tomcat9.version>9.0.16</tomcat9.version>

<!-- Spring Boot versions, used for tests -->
<spring-boot15.version>1.5.20.RELEASE</spring-boot15.version>
<spring-boot21.version>2.1.3.RELEASE</spring-boot21.version>
<spring-boot22.version>2.2.0.RELEASE</spring-boot22.version>
<spring-boot23.version>2.3.0.RELEASE</spring-boot23.version>
<spring-boot24.version>2.4.13</spring-boot24.version>
<spring-boot26.version>2.6.1</spring-boot26.version>

<!-- webauthn support -->
<webauthn4j.version>0.12.0.RELEASE</webauthn4j.version>
Expand Down
12 changes: 6 additions & 6 deletions testsuite/integration-arquillian/HOW-TO-RUN.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,18 +472,18 @@ mvn -f testsuite/integration-arquillian/tests/other/console/pom.xml \

## Spring Boot adapter tests

Currently we are testing Spring Boot with three different containers `Tomcat 8`, `Undertow` and `Jetty [9.2, 9.3, 9.4]`. We are testing two versions of Spring Boot 1.5.x and 2.1.x. All versions are specified in [root pom.xml](../../pom.xml) (see properties `spring-boot15.version` and `spring-boot21.version`).

To run tests execute following command. Default version of Spring Boot is 1.5.x, to run tests with version 2.1.x add profile `-Pspringboot21`
Currently, we are testing Spring Boot with three different containers `Tomcat 8`, `Undertow` and `Jetty 9.4`.
We are testing various versions of Spring Boot 2.x. All versions are specified in [root pom.xml](../../pom.xml) (i.e. see properties `spring-boot24.version` and `spring-boot26.version`).
To run tests execute following command. Default version of Spring Boot is 2.4.x, to run tests with version 2.6.x add profile `-Pspringboot26`.

```
mvn -f testsuite/integration-arquillian/tests/other/springboot-tests/pom.xml \
clean test \
-Dadapter.container=[tomcat|undertow|jetty92|jetty93|jetty94] \
[-Pspringboot21]
-Dadapter.container=[tomcat|undertow|jetty94] \
[-Pspringboot26]
```

Note: Spring Boot 21 doesn't work with jetty92 and jetty93, only jetty94 is tested.
**Note:** Spring Boot 2.x doesn't work with `jetty92` and `jetty93`, only `jetty94` is tested.

## Base UI tests
Similarly to Admin Console tests, these tests are focused on UI, specifically on the parts of the server that are accessed by an end user (like Login page, or Account Console).
Expand Down
Loading

0 comments on commit 18581ca

Please sign in to comment.