Disable Docker-based tests when Docker is not available

Resolves #4360
This commit is contained in:
Sukanth Gunda
2023-05-08 00:58:19 -05:00
committed by Mahmoud Ben Hassine
parent a33f0e9a32
commit ef5ef1e6c6
8 changed files with 24 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class Db2JobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022 the original author or authors.
* Copyright 2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -68,8 +68,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
*
* @author Jonathan Bregler
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
@Disabled("Official Docker image for SAP HANA not publicly available and works only on Linux")
class HANAJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022 the original author or authors.
* Copyright 2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class MariaDBJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -60,8 +60,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class MySQLJdbcJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class MySQLJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -56,8 +56,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
* 2. Run the test `testJobExecution`
*
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
@Disabled("Official Docker images for Oracle are not publicly available")
class OracleJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class PostgreSQLJobRepositoryIntegrationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Mahmoud Ben Hassine
* @author Sukanth Gunda
*/
@Testcontainers
@Testcontainers(disabledWithoutDocker = true)
@SpringJUnitConfig
class SQLServerJobRepositoryIntegrationTests {