Added MS SQL Server to Legacy Store IT. (#16121)

* Added MS SQL Server to Legacy Store IT.

* Update testsuite/integration-arquillian/pom.xml

Co-authored-by: Stian Thorgersen <stianst@gmail.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
This commit is contained in:
Miquel Simon 2023-01-06 08:55:09 +01:00 committed by GitHub
parent dbe0c27bcf
commit c2682157fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -271,7 +271,7 @@ jobs:
timeout-minutes: 45
strategy:
matrix:
db: [postgres, mysql, oracle] # 'mariadb' is not always shutting down, 'mssql' container not available yet
db: [postgres, mysql, oracle, mssql] # 'mariadb' is not always shutting down
fail-fast: false
steps:
- uses: actions/checkout@v3

View file

@ -147,7 +147,7 @@
<postgresql-jdbc.version>42.5.1</postgresql-jdbc.version>
<mariadb.version>10.3.27</mariadb.version>
<mariadb-jdbc.version>2.7.2</mariadb-jdbc.version>
<mssql.version>2019-CU10-ubuntu-20.04</mssql.version>
<mssql.version>2019-latest</mssql.version>
<mssql-jdbc.version>9.2.0.jre8</mssql-jdbc.version>
<!-- this is the oracle driver version also used in the Quarkus BOM -->
<oracle-jdbc.version>21.5.0.0</oracle-jdbc.version>

View file

@ -565,7 +565,7 @@
<keycloak.connectionsJpa.database>keycloak</keycloak.connectionsJpa.database>
<keycloak.connectionsJpa.user>sa</keycloak.connectionsJpa.user>
<keycloak.connectionsJpa.password>vEry5tron9Pwd</keycloak.connectionsJpa.password>
<keycloak.connectionsJpa.url>jdbc:sqlserver://${auth.server.db.host}:${docker.database.port};databaseName=${keycloak.connectionsJpa.database}</keycloak.connectionsJpa.url>
<keycloak.connectionsJpa.url>jdbc:sqlserver://${auth.server.db.host}:${docker.database.port};databaseName=${keycloak.connectionsJpa.database};integratedSecurity=false;encrypt=false;trustServerCertificate=true;sendStringParametersAsUnicode=false;</keycloak.connectionsJpa.url>
<!-- Map Store JPA -->
<keycloak.map.storage.connectionsJpa.url>${keycloak.connectionsJpa.url}</keycloak.map.storage.connectionsJpa.url>
<keycloak.map.storage.connectionsJpa.user>${keycloak.connectionsJpa.user}</keycloak.map.storage.connectionsJpa.user>

View file

@ -59,6 +59,9 @@ public enum StoreProvider {
commands.add("--db-url='" + System.getProperty("keycloak.connectionsJpa.url") + "'");
commands.add("--db-username=" + System.getProperty("keycloak.connectionsJpa.user"));
commands.add("--db-password=" + System.getProperty("keycloak.connectionsJpa.password"));
if ("mssql".equals(getDbVendor().orElse(null))){
commands.add("--transaction-xa-enabled=false");
}
}
},
DEFAULT("default") {