Skip to content

Find, verify, and analyze leaked credentials

consistent image of MSSQL for integration testing. (#2898)

Abdul Basitddd861d4c762
diff --git a/pkg/detectors/jdbc/jdbc_integration_test.go b/pkg/detectors/jdbc/jdbc_integration_test.go
index fec9f24b2..c4106f719 100644
--- a/pkg/detectors/jdbc/jdbc_integration_test.go
+++ b/pkg/detectors/jdbc/jdbc_integration_test.go
@@ -80,7 +80,7 @@ func TestJdbcVerified(t *testing.T) {
sqlServerDatabase := "master"
mssqlContainer, err := mssql.RunContainer(ctx,
- testcontainers.WithImage("mcr.microsoft.com/mssql/server:2022-RTM-GDR1-ubuntu-20.04"),
+ testcontainers.WithImage("mcr.microsoft.com/azure-sql-edge"),
mssql.WithAcceptEULA(),
mssql.WithPassword(sqlServerPass),
)
diff --git a/pkg/detectors/jdbc/sqlserver_integration_test.go b/pkg/detectors/jdbc/sqlserver_integration_test.go
index 26ccea353..684445ed9 100644
--- a/pkg/detectors/jdbc/sqlserver_integration_test.go
+++ b/pkg/detectors/jdbc/sqlserver_integration_test.go
@@ -22,7 +22,7 @@ func TestSqlServer(t *testing.T) {
sqlServerDB := "master"
mssqlContainer, err := mssql.RunContainer(ctx,
- testcontainers.WithImage("mcr.microsoft.com/mssql/server:2022-RTM-GDR1-ubuntu-20.04"),
+ testcontainers.WithImage("mcr.microsoft.com/azure-sql-edge"),
mssql.WithAcceptEULA(),
mssql.WithPassword(sqlServerPass),
)