diff --git a/generators/spring-data-relational/templates/src/test/java/_package_/config/MsSqlTestContainer.java.ejs b/generators/spring-data-relational/templates/src/test/java/_package_/config/MsSqlTestContainer.java.ejs index 16f8696f181e..c9c70f072fb8 100644 --- a/generators/spring-data-relational/templates/src/test/java/_package_/config/MsSqlTestContainer.java.ejs +++ b/generators/spring-data-relational/templates/src/test/java/_package_/config/MsSqlTestContainer.java.ejs @@ -42,6 +42,9 @@ public class MsSqlTestContainer implements SqlTestContainer { public void afterPropertiesSet() { if (null == mSSQLServerContainer) { mSSQLServerContainer = new MSSQLServerContainer<>("<%- dockerContainers.mssql %>") + // You are required to accept EULA license for SQL server containers + // Refer to https://java.testcontainers.org/modules/databases/mssqlserver/ + //.acceptLicense() .withTmpFs(Collections.singletonMap("/testtmpfs", "rw")) .withLogConsumer(new Slf4jLogConsumer(log)) .withReuse(true); diff --git a/generators/spring-data-relational/templates/src/test/resources/config/application-testdev.yml.ejs b/generators/spring-data-relational/templates/src/test/resources/config/application-testdev.yml.ejs index 8997ec1b85ff..837e5111124d 100644 --- a/generators/spring-data-relational/templates/src/test/resources/config/application-testdev.yml.ejs +++ b/generators/spring-data-relational/templates/src/test/resources/config/application-testdev.yml.ejs @@ -24,11 +24,6 @@ # To activate this configuration launch integration tests with the 'testcontainers' profile # # More information on database containers: https://www.testcontainers.org/modules/databases/ -<%_ if (devDatabaseTypeMssql) { _%> -# -# You are required to accept EULA license for SQL server containers. -# Follow the instructions at https://www.testcontainers.org/modules/databases/mssqlserver/ -<%_ } _%> <%_ if (devDatabaseTypeOracle) { _%> # # You have to specify an Oracle image name in a classpath file named testcontainers.properties.