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

chore(deps): update mysql docker tag to v9.1 #2144

Merged
merged 3 commits into from
Dec 4, 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
2 changes: 1 addition & 1 deletion embedded-mysql/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* `embedded.mysql.reuseContainer` `(true|false, default is false)`
* `embedded.mysql.encoding` `(default is 'utf8mb4')`
* `embedded.mysql.collation` `(default is 'utf8mb4_unicode_ci')`
* `embedded.mysql.dockerImage` `(default is 'mysql:9.0')`
* `embedded.mysql.dockerImage` `(default is 'mysql:9.1')`
** Image versions on https://hub.docker.com/_/mysql?tab=tags[dockerhub]
* `embedded.mysql.waitTimeoutInSeconds` `(default is 60 seconds)`
* `embedded.mysql.initScriptPath` `(default is null)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public class MySQLProperties extends CommonContainerProperties {
public String getDefaultDockerImage() {
// Please don`t remove this comment.
// renovate: datasource=docker
return "mysql:9.0";
return "mysql:9.1";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class AutoConfiguredDatasourceDependsOnTest {
JdbcTemplate jdbcTemplate;

@Test
public void shouldConnectToMySQL() throws Exception {
assertThat(jdbcTemplate.queryForObject("select version()", String.class)).startsWith("9.0.");
public void shouldConnectToMySQL() {
assertThat(jdbcTemplate.queryForObject("select version()", String.class)).startsWith("9.1.");
}

@Test
public void shouldSetupDependsOnForAllDataSources() throws Exception {
public void shouldSetupDependsOnForAllDataSources() {
String[] beanNamesForType = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(beanFactory, DataSource.class);
assertThat(beanNamesForType)
.as("Auto-configured datasource should be present")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public class EmbeddedMySQLBootstrapConfigurationTest {
ToxiproxyContainer.ContainerProxy mysqlContainerProxy;

@Test
public void shouldConnectToMySQL() throws Exception {
assertThat(jdbcTemplate.queryForObject("select version()", String.class)).startsWith("9.0.");
public void shouldConnectToMySQL() {
assertThat(jdbcTemplate.queryForObject("select version()", String.class)).startsWith("9.1.");
}

@Test
public void shouldSaveAndGetUnicode() throws Exception {
public void shouldSaveAndGetUnicode() {
jdbcTemplate.execute("CREATE TABLE employee(id INT, name VARCHAR(64));");
jdbcTemplate.execute("insert into employee (id, name) values (1, 'some data \uD83D\uDE22');");

Expand All @@ -80,7 +80,7 @@ public void shouldEmulateLatency() throws Exception {
}

@Test
public void shouldInitDBForMySQL() throws Exception {
public void shouldInitDBForMySQL() {
assertThat(jdbcTemplate.queryForObject("select count(first_name) from users where first_name = 'Sam' ", Integer.class)).isEqualTo(1);
}

Expand All @@ -95,7 +95,7 @@ public void propertiesAreAvailable() {
}

@Test
public void shouldSetupDependsOnForAllDataSources() throws Exception {
public void shouldSetupDependsOnForAllDataSources() {
String[] beanNamesForType = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(beanFactory, DataSource.class);
assertThat(beanNamesForType)
.as("Custom datasource should be present")
Expand Down
Loading