Skip to content

Commit ef5ef1e

Browse files
sukanthfmbenhassine
authored andcommitted
Disable Docker-based tests when Docker is not available
Resolves #4360
1 parent a33f0e9 commit ef5ef1e

8 files changed

+24
-16
lines changed

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@
5050

5151
/**
5252
* @author Mahmoud Ben Hassine
53+
* @author Sukanth Gunda
5354
*/
54-
@Testcontainers
55+
@Testcontainers(disabledWithoutDocker = true)
5556
@SpringJUnitConfig
5657
class Db2JobRepositoryIntegrationTests {
5758

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/HANAJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,8 +68,9 @@
6868
*
6969
* @author Jonathan Bregler
7070
* @author Mahmoud Ben Hassine
71+
* @author Sukanth Gunda
7172
*/
72-
@Testcontainers
73+
@Testcontainers(disabledWithoutDocker = true)
7374
@SpringJUnitConfig
7475
@Disabled("Official Docker image for SAP HANA not publicly available and works only on Linux")
7576
class HANAJobRepositoryIntegrationTests {

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/MariaDBJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@
5050

5151
/**
5252
* @author Mahmoud Ben Hassine
53+
* @author Sukanth Gunda
5354
*/
54-
@Testcontainers
55+
@Testcontainers(disabledWithoutDocker = true)
5556
@SpringJUnitConfig
5657
class MariaDBJobRepositoryIntegrationTests {
5758

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/MySQLJdbcJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -60,8 +60,9 @@
6060

6161
/**
6262
* @author Mahmoud Ben Hassine
63+
* @author Sukanth Gunda
6364
*/
64-
@Testcontainers
65+
@Testcontainers(disabledWithoutDocker = true)
6566
@SpringJUnitConfig
6667
class MySQLJdbcJobRepositoryIntegrationTests {
6768

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/MySQLJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@
5050

5151
/**
5252
* @author Mahmoud Ben Hassine
53+
* @author Sukanth Gunda
5354
*/
54-
@Testcontainers
55+
@Testcontainers(disabledWithoutDocker = true)
5556
@SpringJUnitConfig
5657
class MySQLJobRepositoryIntegrationTests {
5758

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/OracleJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -56,8 +56,9 @@
5656
* 2. Run the test `testJobExecution`
5757
*
5858
* @author Mahmoud Ben Hassine
59+
* @author Sukanth Gunda
5960
*/
60-
@Testcontainers
61+
@Testcontainers(disabledWithoutDocker = true)
6162
@SpringJUnitConfig
6263
@Disabled("Official Docker images for Oracle are not publicly available")
6364
class OracleJobRepositoryIntegrationTests {

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/PostgreSQLJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@
5050

5151
/**
5252
* @author Mahmoud Ben Hassine
53+
* @author Sukanth Gunda
5354
*/
54-
@Testcontainers
55+
@Testcontainers(disabledWithoutDocker = true)
5556
@SpringJUnitConfig
5657
class PostgreSQLJobRepositoryIntegrationTests {
5758

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/SQLServerJobRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@
5050

5151
/**
5252
* @author Mahmoud Ben Hassine
53+
* @author Sukanth Gunda
5354
*/
54-
@Testcontainers
55+
@Testcontainers(disabledWithoutDocker = true)
5556
@SpringJUnitConfig
5657
class SQLServerJobRepositoryIntegrationTests {
5758

0 commit comments

Comments
 (0)