From 4bb2d7eaa223169900c100ccbccea79cbb9ddd80 Mon Sep 17 00:00:00 2001 From: "david.blasby" Date: Tue, 10 Dec 2024 13:22:00 -0800 Subject: [PATCH] turn off integration tests with @Disabled --- .../src/test/java/org/geonetwork/proxy/GeoNetworkProxyTest.java | 2 ++ .../java/org/geonetwork/proxy/HttpProxyConfigurationTest.java | 2 ++ .../org/geonetwork/security/DatabaseUserDetailsServiceTest.java | 2 ++ .../org/geonetwork/testing/GeoNetwork4BasedIntegrationTest.java | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/GeoNetworkProxyTest.java b/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/GeoNetworkProxyTest.java index 80fdeb75..2fc2f1b7 100644 --- a/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/GeoNetworkProxyTest.java +++ b/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/GeoNetworkProxyTest.java @@ -10,11 +10,13 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.geonetwork.testing.GeoNetwork4BasedIntegrationTest; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; +@Disabled class GeoNetworkProxyTest extends GeoNetwork4BasedIntegrationTest { @Autowired diff --git a/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/HttpProxyConfigurationTest.java b/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/HttpProxyConfigurationTest.java index 412f75a2..1ebd5969 100644 --- a/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/HttpProxyConfigurationTest.java +++ b/src/apps/geonetwork/src/test/java/org/geonetwork/proxy/HttpProxyConfigurationTest.java @@ -11,6 +11,7 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; @@ -19,6 +20,7 @@ @SpringBootTest @AutoConfigureMockMvc +@Disabled class HttpProxyConfigurationTest { @Autowired diff --git a/src/apps/geonetwork/src/test/java/org/geonetwork/security/DatabaseUserDetailsServiceTest.java b/src/apps/geonetwork/src/test/java/org/geonetwork/security/DatabaseUserDetailsServiceTest.java index f5ded2ac..0069822e 100644 --- a/src/apps/geonetwork/src/test/java/org/geonetwork/security/DatabaseUserDetailsServiceTest.java +++ b/src/apps/geonetwork/src/test/java/org/geonetwork/security/DatabaseUserDetailsServiceTest.java @@ -15,6 +15,7 @@ import org.geonetwork.domain.repository.UserRepository; import org.geonetwork.domain.repository.UsergroupRepository; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; @@ -22,6 +23,7 @@ import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UsernameNotFoundException; +@Disabled class DatabaseUserDetailsServiceTest { @Mock diff --git a/src/apps/geonetwork/src/test/java/org/geonetwork/testing/GeoNetwork4BasedIntegrationTest.java b/src/apps/geonetwork/src/test/java/org/geonetwork/testing/GeoNetwork4BasedIntegrationTest.java index ab7ccf72..d7c1378a 100644 --- a/src/apps/geonetwork/src/test/java/org/geonetwork/testing/GeoNetwork4BasedIntegrationTest.java +++ b/src/apps/geonetwork/src/test/java/org/geonetwork/testing/GeoNetwork4BasedIntegrationTest.java @@ -13,6 +13,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.util.TestPropertyValues; @@ -36,6 +37,7 @@ @ActiveProfiles(value = {"prod", "test"}) @Slf4j @ContextConfiguration(initializers = GeoNetwork4BasedIntegrationTest.class) +@Disabled public class GeoNetwork4BasedIntegrationTest implements ApplicationContextInitializer { public static final String GEONETWORK4_SERVICE = "geonetwork-1";