HHH-15448 Run tests on MSSQL Server using trustServerCertificate=true

This commit is contained in:
Sanne Grinovero 2022-08-15 16:44:36 +01:00 committed by Sanne Grinovero
parent dcf6730461
commit 9ecb4484a4
4 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
hibernate.dialect org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class com.microsoft.sqlserver.jdbc.SQLServerDriver
hibernate.connection.url jdbc:sqlserver://hibernate-testing-mssql-express.ccuzkqo3zqzq.us-east-1.rds.amazonaws.com
hibernate.connection.url jdbc:sqlserver://hibernate-testing-mssql-express.ccuzkqo3zqzq.us-east-1.rds.amazonaws.com;trustServerCertificate=true
hibernate.connection.username hibernate_orm_test
hibernate.connection.password hibernate_orm_test

View File

@ -218,7 +218,7 @@ ext {
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
'jdbc.user' : 'hibernate_orm_test',
'jdbc.pass' : 'hibernate_orm_test',
'jdbc.url' : 'jdbc:sqlserver://' + dbHost + ';instance=SQLEXPRESS;databaseName=hibernate_orm_test',
'jdbc.url' : 'jdbc:sqlserver://' + dbHost + ';instance=SQLEXPRESS;databaseName=hibernate_orm_test;trustServerCertificate=true',
'connection.init_sql' : ''
],
mssql_ci : [
@ -226,7 +226,7 @@ ext {
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
'jdbc.user' : 'sa',
'jdbc.pass' : 'Hibernate_orm_test',
'jdbc.url' : 'jdbc:sqlserver://' + dbHost + ';databaseName=hibernate_orm_test;sendTimeAsDatetime=false',
'jdbc.url' : 'jdbc:sqlserver://' + dbHost + ';databaseName=hibernate_orm_test;sendTimeAsDatetime=false;trustServerCertificate=true',
'connection.init_sql' : ''
],
informix : [

View File

@ -68,7 +68,7 @@ public class SQLServerDialectSequenceInformationTest extends BaseUnitTestCase {
String databaseNameToken = "databaseName=";
String url = (String) Environment.getProperties().get( AvailableSettings.URL );
String[] tokens = url.split( databaseNameToken );
String newUrl = tokens[0] + databaseNameToken + DATABASE_NAME;
String newUrl = tokens[0] + databaseNameToken + DATABASE_NAME + ";trustServerCertificate=true";
Dialect dialect = DialectContext.getDialect();

View File

@ -58,7 +58,7 @@ public class SQLServerStoredProcedureCrossDatabaseTest {
String[] tokens = url.split( DATABASE_NAME_TOKEN );
url = tokens[0] + DATABASE_NAME_TOKEN + DATABASE_NAME;
url = tokens[0] + DATABASE_NAME_TOKEN + DATABASE_NAME + ";trustServerCertificate=true";
doInAutoCommit( Collections.singletonMap( AvailableSettings.URL, url ),
"DROP PROCEDURE sp_square_number",