Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify MSSQL Server testcontainer setup for integration tests #25108

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading