@@ -21,10 +21,11 @@ import java.util.Locale;
|
||||
* Supported database types. Types are defined to express against which database a particular test is expected to run.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
* @author Jens Schauder
|
||||
*/
|
||||
public enum DatabaseType {
|
||||
|
||||
DB2, HSQL, H2, MARIADB, MYSQL, ORACLE, POSTGRES, SQL_SEVER("mssql");
|
||||
DB2, HSQL, H2, MARIADB, MYSQL, ORACLE, POSTGRES, SQL_SERVER("mssql");
|
||||
|
||||
private final String profile;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class LicenseListener implements TestExecutionListener {
|
||||
assumeLicenseAccepted(Db2DataSourceConfiguration.DOCKER_IMAGE_NAME);
|
||||
}
|
||||
|
||||
if (environment.matchesProfiles(DatabaseType.SQL_SEVER.getProfile())) {
|
||||
if (environment.matchesProfiles(DatabaseType.SQL_SERVER.getProfile())) {
|
||||
assumeLicenseAccepted(MS_SQL_SERVER_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,10 +31,11 @@ import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
|
||||
*
|
||||
* @author Thomas Lang
|
||||
* @author Mark Paluch
|
||||
* @author Jens Schauder
|
||||
* @see <a href="https://github.com/testcontainers/testcontainers-java/tree/master/modules/mssqlserver"></a>
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnDatabase(DatabaseType.MARIADB)
|
||||
@ConditionalOnDatabase(DatabaseType.SQL_SERVER)
|
||||
public class MsSqlDataSourceConfiguration extends DataSourceConfiguration {
|
||||
|
||||
public static final String MS_SQL_SERVER_VERSION = "mcr.microsoft.com/mssql/server:2022-CU5-ubuntu-20.04";
|
||||
|
||||
Reference in New Issue
Block a user