@@ -16,7 +16,7 @@ import (
1616// Uses shared container set up in TestMain
1717func TestAccGrant_WithTestcontainers (t * testing.T ) {
1818 // Use shared container set up in TestMain
19- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
19+ _ = getSharedMySQLContainer (t , "" )
2020
2121 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
2222 userName := fmt .Sprintf ("jdoe-%s" , dbName )
@@ -58,7 +58,7 @@ func TestAccGrant_WithTestcontainers(t *testing.T) {
5858// TestAccRevokePrivRefresh_WithTestcontainers tests privilege revocation and refresh
5959func TestAccRevokePrivRefresh_WithTestcontainers (t * testing.T ) {
6060 // Use shared container set up in TestMain
61- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
61+ _ = getSharedMySQLContainer (t , "" )
6262
6363 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
6464
@@ -108,7 +108,7 @@ func TestAccRevokePrivRefresh_WithTestcontainers(t *testing.T) {
108108// TestAccBroken_WithTestcontainers tests error handling for duplicate grants
109109func TestAccBroken_WithTestcontainers (t * testing.T ) {
110110 // Use shared container set up in TestMain
111- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
111+ _ = getSharedMySQLContainer (t , "" )
112112
113113 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
114114 resource .Test (t , resource.TestCase {
@@ -144,7 +144,7 @@ func TestAccBroken_WithTestcontainers(t *testing.T) {
144144// TestAccDifferentHosts_WithTestcontainers tests grants with different hosts
145145func TestAccDifferentHosts_WithTestcontainers (t * testing.T ) {
146146 // Use shared container set up in TestMain
147- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
147+ _ = getSharedMySQLContainer (t , "" )
148148
149149 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
150150 resource .Test (t , resource.TestCase {
@@ -180,7 +180,7 @@ func TestAccDifferentHosts_WithTestcontainers(t *testing.T) {
180180// TestAccGrantComplex_WithTestcontainers tests complex grant scenarios
181181func TestAccGrantComplex_WithTestcontainers (t * testing.T ) {
182182 // Use shared container set up in TestMain
183- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
183+ _ = getSharedMySQLContainer (t , "" )
184184
185185 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
186186 resource .Test (t , resource.TestCase {
@@ -251,7 +251,7 @@ func TestAccGrantComplex_WithTestcontainers(t *testing.T) {
251251// TestAccGrantComplexMySQL8_WithTestcontainers tests MySQL 8.0 specific grants
252252func TestAccGrantComplexMySQL8_WithTestcontainers (t * testing.T ) {
253253 // Use shared container set up in TestMain
254- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
254+ _ = getSharedMySQLContainer (t , "" )
255255
256256 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
257257 resource .Test (t , resource.TestCase {
@@ -277,7 +277,7 @@ func TestAccGrantComplexMySQL8_WithTestcontainers(t *testing.T) {
277277// TestAccGrant_role_WithTestcontainers tests role grants (requires MySQL 8.0+)
278278func TestAccGrant_role_WithTestcontainers (t * testing.T ) {
279279 // Use shared container set up in TestMain
280- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
280+ _ = getSharedMySQLContainer (t , "" )
281281
282282 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
283283 roleName := fmt .Sprintf ("TFRole-exp%d" , rand .Intn (100 ))
@@ -312,7 +312,7 @@ func TestAccGrant_role_WithTestcontainers(t *testing.T) {
312312// TestAccGrant_roleToUser_WithTestcontainers tests granting roles to users (requires MySQL 8.0+)
313313func TestAccGrant_roleToUser_WithTestcontainers (t * testing.T ) {
314314 // Use shared container set up in TestMain
315- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
315+ _ = getSharedMySQLContainer (t , "" )
316316
317317 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
318318 roleName := fmt .Sprintf ("TFRole-%d" , rand .Intn (100 ))
@@ -336,7 +336,7 @@ func TestAccGrant_roleToUser_WithTestcontainers(t *testing.T) {
336336// TestAccGrant_complexRoleGrants_WithTestcontainers tests complex role grant scenarios (requires MySQL 8.0+)
337337func TestAccGrant_complexRoleGrants_WithTestcontainers (t * testing.T ) {
338338 // Use shared container set up in TestMain
339- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
339+ _ = getSharedMySQLContainer (t , "" )
340340
341341 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
342342 resource .Test (t , resource.TestCase {
@@ -354,7 +354,7 @@ func TestAccGrant_complexRoleGrants_WithTestcontainers(t *testing.T) {
354354// TestAccGrantOnProcedure_WithTestcontainers tests procedure grants
355355func TestAccGrantOnProcedure_WithTestcontainers (t * testing.T ) {
356356 // Use shared container set up in TestMain
357- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
357+ _ = getSharedMySQLContainer (t , "" )
358358
359359 procedureName := "test_procedure"
360360 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
@@ -395,7 +395,7 @@ func TestAccGrantOnProcedure_WithTestcontainers(t *testing.T) {
395395// TestAllowDuplicateUsersDifferentTables_WithTestcontainers tests allowing duplicate grants on different tables
396396func TestAllowDuplicateUsersDifferentTables_WithTestcontainers (t * testing.T ) {
397397 // Use shared container set up in TestMain
398- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
398+ _ = getSharedMySQLContainer (t , "" )
399399
400400 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
401401
@@ -464,7 +464,7 @@ func TestAllowDuplicateUsersDifferentTables_WithTestcontainers(t *testing.T) {
464464// TestDisallowDuplicateUsersSameTable_WithTestcontainers tests disallowing duplicate grants on same table
465465func TestDisallowDuplicateUsersSameTable_WithTestcontainers (t * testing.T ) {
466466 // Use shared container set up in TestMain
467- _ = getSharedMySQLContainer (t , "mysql:8.0 " )
467+ _ = getSharedMySQLContainer (t , "" )
468468
469469 dbName := fmt .Sprintf ("tf-test-%d" , rand .Intn (100 ))
470470
0 commit comments