HHH-15448 Run tests on MSSQL Server using trustServerCertificate=true
This commit is contained in:
parent
dcf6730461
commit
9ecb4484a4
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
hibernate.dialect org.hibernate.dialect.SQLServerDialect
|
hibernate.dialect org.hibernate.dialect.SQLServerDialect
|
||||||
hibernate.connection.driver_class com.microsoft.sqlserver.jdbc.SQLServerDriver
|
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.username hibernate_orm_test
|
||||||
hibernate.connection.password hibernate_orm_test
|
hibernate.connection.password hibernate_orm_test
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@ ext {
|
||||||
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
|
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
|
||||||
'jdbc.user' : 'hibernate_orm_test',
|
'jdbc.user' : 'hibernate_orm_test',
|
||||||
'jdbc.pass' : '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' : ''
|
'connection.init_sql' : ''
|
||||||
],
|
],
|
||||||
mssql_ci : [
|
mssql_ci : [
|
||||||
|
@ -226,7 +226,7 @@ ext {
|
||||||
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
|
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
|
||||||
'jdbc.user' : 'sa',
|
'jdbc.user' : 'sa',
|
||||||
'jdbc.pass' : 'Hibernate_orm_test',
|
'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' : ''
|
'connection.init_sql' : ''
|
||||||
],
|
],
|
||||||
informix : [
|
informix : [
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class SQLServerDialectSequenceInformationTest extends BaseUnitTestCase {
|
||||||
String databaseNameToken = "databaseName=";
|
String databaseNameToken = "databaseName=";
|
||||||
String url = (String) Environment.getProperties().get( AvailableSettings.URL );
|
String url = (String) Environment.getProperties().get( AvailableSettings.URL );
|
||||||
String[] tokens = url.split( databaseNameToken );
|
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();
|
Dialect dialect = DialectContext.getDialect();
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class SQLServerStoredProcedureCrossDatabaseTest {
|
||||||
|
|
||||||
String[] tokens = url.split( DATABASE_NAME_TOKEN );
|
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 ),
|
doInAutoCommit( Collections.singletonMap( AvailableSettings.URL, url ),
|
||||||
"DROP PROCEDURE sp_square_number",
|
"DROP PROCEDURE sp_square_number",
|
||||||
|
|
Loading…
Reference in New Issue