Skip to content

Commit 93b1009

Browse files
authored
Apply LTS version for all MySQL images
1 parent 0f4bc0b commit 93b1009

File tree

26 files changed

+39
-39
lines changed

26 files changed

+39
-39
lines changed

batch-rest-repository/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class UserBatchJobTests {
108108
109109
@Container
110110
@ServiceConnection
111-
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest")
111+
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts")
112112
.withInitScript("org/springframework/batch/core/schema-mysql.sql");
113113
114114
@Container

batch-rest-repository/src/test/java/zin/rashidi/boot/batch/rest/user/UserBatchJobTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class UserBatchJobTests {
4242

4343
@Container
4444
@ServiceConnection
45-
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest")
45+
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts")
4646
.withInitScript("org/springframework/batch/core/schema-mysql.sql");
4747

4848
@Container

batch-skip-step/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class UserBatchJobTests {
123123
124124
@Container
125125
@ServiceConnection
126-
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest");
126+
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts");
127127
128128
@Autowired
129129
private JobLauncherTestUtils launcher;

batch-skip-step/src/test/java/zin/rashidi/boot/batch/user/UserBatchJobTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class UserBatchJobTests {
5151

5252
@Container
5353
@ServiceConnection
54-
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest");
54+
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts");
5555

5656
@Autowired
5757
private JobLauncherTestUtils launcher;

cloud-jdbc-env-repo/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ Next we will have link:{url-quickref}/src/test/java/zin/rashidi/boot/cloud/jdbce
171171
[source,java]
172172
----
173173
@Testcontainers
174-
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:8:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
174+
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:lts:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
175175
class CloudJdbcEnvRepoApplicationTests {
176176
177177
@Container
178-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:8");
178+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
179179
180180
@Autowired
181181
private TestRestTemplate restClient;

cloud-jdbc-env-repo/src/test/java/zin/rashidi/boot/cloud/jdbcenvrepo/CloudJdbcEnvRepoApplicationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
1414

1515
@Testcontainers
16-
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:8:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
16+
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:lts:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
1717
class CloudJdbcEnvRepoApplicationTests {
1818

1919
@Container
20-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:8");
20+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
2121

2222
@Autowired
2323
private TestRestTemplate restClient;

data-domain-events/src/test/java/zin/rashidi/boot/data/de/TestDataDomainEventsApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class TestDataDomainEventsApplication {
1212
@Bean
1313
@ServiceConnection
1414
MySQLContainer<?> mysqlContainer() {
15-
return new MySQLContainer<>("mysql:latest");
15+
return new MySQLContainer<>("mysql:lts");
1616
}
1717

1818
public static void main(String[] args) {

data-envers-audit/README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class BookAuditRevisionTests {
7373
7474
@Container
7575
@ServiceConnection
76-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
76+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
7777
7878
@Autowired
7979
private BookRepository repository;
@@ -110,7 +110,7 @@ class BookAuditRevisionTests {
110110
111111
@Container
112112
@ServiceConnection
113-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
113+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
114114
115115
@Autowired
116116
private BookRepository repository;
@@ -151,7 +151,7 @@ class BookAuditRevisionTests {
151151
152152
@Container
153153
@ServiceConnection
154-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
154+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
155155
156156
@Autowired
157157
private BookRepository repository;

data-envers-audit/src/test/java/zin/rashidi/boot/data/envers/BookAuditRevisionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BookAuditRevisionTests {
2828

2929
@Container
3030
@ServiceConnection
31-
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
31+
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");
3232

3333
@Autowired
3434
private BookRepository repository;

data-jpa-audit/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UserAuditTests {
139139
140140
@Container
141141
@ServiceConnection
142-
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
142+
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");
143143
144144
@Autowired
145145
private UserRepository repository;
@@ -174,7 +174,7 @@ class UserAuditTests {
174174
175175
@Container
176176
@ServiceConnection
177-
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
177+
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");
178178
179179
@Autowired
180180
private UserRepository repository;

0 commit comments

Comments
 (0)