From 4c6405195497d8520f48de1f2f3f108b19fce24d Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Thu, 5 Oct 2023 15:16:50 +0200 Subject: [PATCH] test(mail): include in regular IT test suite --- .../harvard/iq/dataverse/util/MailSessionProducerIT.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/edu/harvard/iq/dataverse/util/MailSessionProducerIT.java b/src/test/java/edu/harvard/iq/dataverse/util/MailSessionProducerIT.java index 382fb99dca3..b6a77cc830e 100644 --- a/src/test/java/edu/harvard/iq/dataverse/util/MailSessionProducerIT.java +++ b/src/test/java/edu/harvard/iq/dataverse/util/MailSessionProducerIT.java @@ -7,10 +7,12 @@ import edu.harvard.iq.dataverse.settings.SettingsServiceBean; import edu.harvard.iq.dataverse.util.testing.JvmSetting; import edu.harvard.iq.dataverse.util.testing.LocalJvmSettings; +import edu.harvard.iq.dataverse.util.testing.Tags; import io.restassured.RestAssured; import jakarta.mail.Session; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; @@ -32,7 +34,10 @@ * works, as it is not running within a servlet container. This would require usage of Arquillian * or and end-to-end API test with a deployed application. */ -@Testcontainers + +@Tag(Tags.INTEGRATION_TEST) +@Tag(Tags.USES_TESTCONTAINERS) +@Testcontainers(disabledWithoutDocker = true) @ExtendWith(MockitoExtension.class) @LocalJvmSettings @JvmSetting(key = JvmSettings.MAIL_MTA_HOST, method = "tcSmtpHost")