From 323dbe1e68b489f901edef65f2db646aa0da29dc Mon Sep 17 00:00:00 2001 From: Hao Date: Tue, 6 Feb 2024 11:22:15 +0800 Subject: [PATCH] Explicitly accept MSSQL Server container license during setup --- .../src/test/java/_package_/config/MsSqlTestContainer.java.ejs | 1 + 1 file changed, 1 insertion(+) 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..5af572b4b022 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,7 @@ public class MsSqlTestContainer implements SqlTestContainer { public void afterPropertiesSet() { if (null == mSSQLServerContainer) { mSSQLServerContainer = new MSSQLServerContainer<>("<%- dockerContainers.mssql %>") + .acceptLicense() .withTmpFs(Collections.singletonMap("/testtmpfs", "rw")) .withLogConsumer(new Slf4jLogConsumer(log)) .withReuse(true);