Skip to content

Commit 762022a

Browse files
authored
Merge branch 'main' into toxyproxy_junit5
2 parents 18b2053 + 9654cf1 commit 762022a

File tree

139 files changed

+967
-902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+967
-902
lines changed

.github/workflows/ci-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
statuses: write
6767
steps:
6868
- name: Create pending status
69-
uses: actions/github-script@v7
69+
uses: actions/github-script@v8
7070
with:
7171
github-token: ${{ secrets.GITHUB_TOKEN }}
7272
script: |
@@ -89,7 +89,7 @@ jobs:
8989
- uses: ./.github/actions/setup-junit-report
9090

9191
- name: Create success status
92-
uses: actions/github-script@v7
92+
uses: actions/github-script@v8
9393
if: success()
9494
with:
9595
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -104,7 +104,7 @@ jobs:
104104
})
105105
106106
- name: Create failure status
107-
uses: actions/github-script@v7
107+
uses: actions/github-script@v8
108108
if: failure()
109109
with:
110110
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
# we should not push empty results to the cache
9999
READ_ONLY_REMOTE_GRADLE_CACHE: true
100100
run: |
101-
TASKS=$(./gradlew --no-daemon --parallel -q testMatrix | jq 'del(.[] | select(. == ":testcontainers:check" or startswith(":docs:")))' --compact-output)
101+
TASKS=$(./gradlew --no-daemon --parallel -q testMatrix | jq 'del(.[] | select(. == ":testcontainers-databend:check" or . == ":testcontainers:check" or startswith(":docs:")))' --compact-output)
102102
echo $TASKS
103103
echo "matrix={\"gradle_args\":$TASKS}" >> $GITHUB_OUTPUT
104104
check:

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/labeler@v5
12+
- uses: actions/labeler@v6
1313
with:
1414
repo-token: "${{ secrets.GITHUB_TOKEN }}"

buildSrc/src/main/groovy/org/testcontainers/build/ComparePOMWithLatestReleasedTask.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.testcontainers.build
22

3+
import groovy.xml.XmlSlurper
34
import org.gradle.api.DefaultTask
45
import org.gradle.api.tasks.Input
56
import org.gradle.api.tasks.TaskAction

core/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ configurations.all {
7070
dependencies {
7171
api 'junit:junit:4.13.2'
7272
api 'org.slf4j:slf4j-api:1.7.36'
73-
compileOnly 'org.jetbrains:annotations:26.0.2'
74-
testCompileOnly 'org.jetbrains:annotations:26.0.2'
75-
api 'org.apache.commons:commons-compress:1.24.0'
73+
compileOnly 'org.jetbrains:annotations:26.0.2-1'
74+
testCompileOnly 'org.jetbrains:annotations:26.0.2-1'
75+
api 'org.apache.commons:commons-compress:1.28.0'
7676
api ('org.rnorth.duct-tape:duct-tape:1.0.8') {
7777
exclude(group: 'org.jetbrains', module: 'annotations')
7878
}
@@ -87,8 +87,8 @@ dependencies {
8787

8888
shaded 'org.awaitility:awaitility:4.3.0'
8989

90-
api platform('com.github.docker-java:docker-java-bom:3.5.3')
91-
shaded platform('com.github.docker-java:docker-java-bom:3.5.3')
90+
api platform('com.github.docker-java:docker-java-bom:3.6.0')
91+
shaded platform('com.github.docker-java:docker-java-bom:3.6.0')
9292

9393
api "com.github.docker-java:docker-java-api"
9494

@@ -99,7 +99,7 @@ dependencies {
9999
api 'com.github.docker-java:docker-java-transport-zerodep'
100100

101101
shaded 'com.google.guava:guava:33.3.1-jre'
102-
shaded "org.yaml:snakeyaml:2.4"
102+
shaded "org.yaml:snakeyaml:2.5"
103103

104104
shaded 'org.glassfish.main.external:trilead-ssh2-repackaged:4.1.2'
105105

@@ -109,7 +109,7 @@ dependencies {
109109
exclude group: 'com.google.guava', module: 'guava'
110110
}
111111
testImplementation 'org.apache.httpcomponents:httpclient:4.5.14'
112-
testImplementation 'redis.clients:jedis:6.1.0'
112+
testImplementation 'redis.clients:jedis:6.2.0'
113113
testImplementation 'com.rabbitmq:amqp-client:5.26.0'
114114
testImplementation 'org.mongodb:mongo-java-driver:3.12.14'
115115

@@ -119,13 +119,13 @@ dependencies {
119119
// Synthetic JAR used for MountableFileTest and DirectoryTarResourceTest
120120
testImplementation files('testlib/repo/fakejar/fakejar/0/fakejar-0.jar')
121121

122-
testImplementation 'org.assertj:assertj-core:3.27.4'
122+
testImplementation 'org.assertj:assertj-core:3.27.6'
123123
testImplementation 'io.rest-assured:rest-assured:5.5.6'
124124

125125
jarFileTestCompileOnly "org.projectlombok:lombok:${lombok.version}"
126126
jarFileTestAnnotationProcessor "org.projectlombok:lombok:${lombok.version}"
127127
jarFileTestImplementation 'junit:junit:4.13.2'
128-
jarFileTestImplementation 'org.assertj:assertj-core:3.27.4'
128+
jarFileTestImplementation 'org.assertj:assertj-core:3.27.6'
129129
jarFileTestImplementation 'org.ow2.asm:asm-debug-all:5.2'
130130
}
131131

examples/selenium-container/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '2.7.18'
3+
id 'org.springframework.boot' version '3.5.6'
44
}
55
apply plugin: 'io.spring.dependency-management'
66

@@ -17,7 +17,6 @@ dependencies {
1717
testImplementation 'org.testcontainers:testcontainers-selenium'
1818
testImplementation 'org.testcontainers:testcontainers-junit-jupiter'
1919
testImplementation 'org.assertj:assertj-core:3.27.4'
20-
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.8.2"
2120
}
2221

2322
test {

modules/clickhouse/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ dependencies {
1010
testImplementation project(':testcontainers-jdbc-test')
1111
testRuntimeOnly(group: 'com.clickhouse', name: 'clickhouse-jdbc', version: '0.9.1', classifier: 'all')
1212

13+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
14+
15+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
1316
testImplementation 'org.assertj:assertj-core:3.27.4'
1417
testImplementation 'com.clickhouse:client-v2:0.9.1'
1518
testImplementation testFixtures(project(':testcontainers-r2dbc'))
1619
testRuntimeOnly(group: 'com.clickhouse', name: 'clickhouse-r2dbc', version: '0.9.1', classifier: 'http')
1720
}
21+
22+
test {
23+
useJUnitPlatform()
24+
}

modules/clickhouse/src/test/java/org/testcontainers/clickhouse/ClickHouseContainerTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.clickhouse.client.api.Client;
44
import com.clickhouse.client.api.data_formats.ClickHouseBinaryFormatReader;
55
import com.clickhouse.client.api.query.QueryResponse;
6-
import org.junit.Test;
6+
import org.junit.jupiter.api.Test;
77
import org.testcontainers.ClickhouseTestImages;
88
import org.testcontainers.db.AbstractContainerDatabaseTest;
99

@@ -16,10 +16,10 @@
1616
import static org.assertj.core.api.Assertions.assertThat;
1717
import static org.assertj.core.api.Assertions.fail;
1818

19-
public class ClickHouseContainerTest extends AbstractContainerDatabaseTest {
19+
class ClickHouseContainerTest extends AbstractContainerDatabaseTest {
2020

2121
@Test
22-
public void testSimple() throws SQLException {
22+
void testSimple() throws SQLException {
2323
try ( // container {
2424
ClickHouseContainer clickhouse = new ClickHouseContainer("clickhouse/clickhouse-server:21.11-alpine")
2525
// }
@@ -34,7 +34,7 @@ public void testSimple() throws SQLException {
3434
}
3535

3636
@Test
37-
public void customCredentialsWithUrlParams() throws SQLException {
37+
void customCredentialsWithUrlParams() throws SQLException {
3838
try (
3939
ClickHouseContainer clickhouse = new ClickHouseContainer("clickhouse/clickhouse-server:21.11.2-alpine")
4040
.withUsername("default")
@@ -56,7 +56,7 @@ public void customCredentialsWithUrlParams() throws SQLException {
5656
}
5757

5858
@Test
59-
public void testNewAuth() throws SQLException {
59+
void testNewAuth() throws SQLException {
6060
try (ClickHouseContainer clickhouse = new ClickHouseContainer(ClickhouseTestImages.CLICKHOUSE_24_12_IMAGE)) {
6161
clickhouse.start();
6262

@@ -68,7 +68,7 @@ public void testNewAuth() throws SQLException {
6868
}
6969

7070
@Test
71-
public void testGetHttpMethodWithHttpClient() {
71+
void testGetHttpMethodWithHttpClient() {
7272
ClickHouseContainer clickhouse = new ClickHouseContainer(ClickhouseTestImages.CLICKHOUSE_24_12_IMAGE);
7373
clickhouse.start();
7474
Client client = new Client.Builder()

modules/clickhouse/src/test/java/org/testcontainers/jdbc/clickhouse/ClickhouseJDBCDriverTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package org.testcontainers.jdbc.clickhouse;
22

3-
import org.junit.runner.RunWith;
4-
import org.junit.runners.Parameterized;
53
import org.testcontainers.jdbc.AbstractJDBCDriverTest;
64

75
import java.util.Arrays;
86
import java.util.EnumSet;
97

10-
@RunWith(Parameterized.class)
11-
public class ClickhouseJDBCDriverTest extends AbstractJDBCDriverTest {
8+
class ClickhouseJDBCDriverTest extends AbstractJDBCDriverTest {
129

13-
@Parameterized.Parameters(name = "{index} - {0}")
1410
public static Iterable<Object[]> data() {
1511
return Arrays.asList(
1612
new Object[][] { //

modules/clickhouse/src/test/java/org/testcontainers/junit/clickhouse/SimpleClickhouseTest.java

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
11
package org.testcontainers.junit.clickhouse;
22

3-
import org.junit.Test;
4-
import org.junit.runner.RunWith;
5-
import org.junit.runners.Parameterized;
3+
import org.junit.jupiter.api.Test;
64
import org.testcontainers.ClickhouseTestImages;
75
import org.testcontainers.containers.ClickHouseContainer;
86
import org.testcontainers.db.AbstractContainerDatabaseTest;
9-
import org.testcontainers.utility.DockerImageName;
107

118
import java.sql.ResultSet;
129
import java.sql.SQLException;
1310

1411
import static org.assertj.core.api.Assertions.assertThat;
1512

16-
@RunWith(Parameterized.class)
17-
public class SimpleClickhouseTest extends AbstractContainerDatabaseTest {
18-
19-
private final DockerImageName imageName;
20-
21-
public SimpleClickhouseTest(DockerImageName imageName) {
22-
this.imageName = imageName;
23-
}
24-
25-
@Parameterized.Parameters(name = "{0}")
26-
public static Object[][] data() {
27-
return new Object[][] { //
28-
{ ClickhouseTestImages.CLICKHOUSE_IMAGE },
29-
};
30-
}
13+
class SimpleClickhouseTest extends AbstractContainerDatabaseTest {
3114

3215
@Test
3316
public void testSimple() throws SQLException {
34-
try (ClickHouseContainer clickhouse = new ClickHouseContainer(this.imageName)) {
17+
try (ClickHouseContainer clickhouse = new ClickHouseContainer(ClickhouseTestImages.CLICKHOUSE_IMAGE)) {
3518
clickhouse.start();
3619

3720
ResultSet resultSet = performQuery(clickhouse, "SELECT 1");

0 commit comments

Comments
 (0)