From a6f0371614c47657ad8dfbe1f55cf423657083a7 Mon Sep 17 00:00:00 2001 From: t-takahashi Date: Tue, 21 May 2024 07:35:58 +0900 Subject: [PATCH] fix test --- build.gradle | 2 +- src/test/java/io/github/tttol/mrls/MrlsApplicationTests.java | 5 ++++- .../github/tttol/mrls/controller/MrListControllerTest.java | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 005f70f..2935a2c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'io.github.tttol' -version = "1.1.6" +version = "1.1.7" java { sourceCompatibility = JavaVersion.VERSION_21 diff --git a/src/test/java/io/github/tttol/mrls/MrlsApplicationTests.java b/src/test/java/io/github/tttol/mrls/MrlsApplicationTests.java index 85f5dd1..2398f48 100644 --- a/src/test/java/io/github/tttol/mrls/MrlsApplicationTests.java +++ b/src/test/java/io/github/tttol/mrls/MrlsApplicationTests.java @@ -3,7 +3,10 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; -@SpringBootTest(properties = {"GITLAB_PROJECT_ID=dummy", +@SpringBootTest(properties = { + "PROXY_HOST=dummy.com", + "PROXY_PORT=80", + "GITLAB_PROJECT_ID=dummy", "GITLAB_ACCESS_TOKEN=dummy", "GITLAB_HOST=dummy"}) class MrlsApplicationTests { diff --git a/src/test/java/io/github/tttol/mrls/controller/MrListControllerTest.java b/src/test/java/io/github/tttol/mrls/controller/MrListControllerTest.java index 017a1ea..63f973d 100644 --- a/src/test/java/io/github/tttol/mrls/controller/MrListControllerTest.java +++ b/src/test/java/io/github/tttol/mrls/controller/MrListControllerTest.java @@ -22,7 +22,10 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view; -@SpringBootTest(properties = {"GITLAB_PROJECT_ID=dummy", +@SpringBootTest(properties = { + "PROXY_HOST=dummy.com", + "PROXY_PORT=80", + "GITLAB_PROJECT_ID=dummy", "GITLAB_ACCESS_TOKEN=dummy"}) public class MrListControllerTest {