From b32af00169ce0ddb0ceb6bcc96ef86784bf6557c Mon Sep 17 00:00:00 2001 From: TheOtherP Date: Sat, 23 Sep 2023 09:38:16 +0200 Subject: [PATCH] Update dependencies (primarily Spring Boot 3.1) --- .github/workflows/buildNative.yml | 2 ++ other/mockserver/pom.xml | 1 - pom.xml | 18 ++++++++---------- releases/pom.xml | 1 - .../test/java/org/nzbhydra/AuthLoginTest.java | 7 ++++--- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/buildNative.yml b/.github/workflows/buildNative.yml index 5d40f0fd4..2517c2208 100644 --- a/.github/workflows/buildNative.yml +++ b/.github/workflows/buildNative.yml @@ -15,6 +15,8 @@ jobs: HYDRA_NATIVE_BUILD: true runs-on: ${{ matrix.os }} steps: + - name: Log free memory + run: free -s 1 -h -c 3 - uses: actions/checkout@v3 with: # Check out last 15 commits diff --git a/other/mockserver/pom.xml b/other/mockserver/pom.xml index 07f356988..e23838947 100644 --- a/other/mockserver/pom.xml +++ b/other/mockserver/pom.xml @@ -24,7 +24,6 @@ 1.2.3 31.1-jre 4.12 - 3.6.2 UTF-8 true 3.0.1 diff --git a/pom.xml b/pom.xml index c0a7be329..879dd8cac 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,6 @@ master ${env.GITHUB_TOKEN} - ${env.DISCORD_TOKEN} ${basedir}/releases/linux-amd64-release/target/nzbhydra2-${project.version}-amd64-linux.zip ${basedir}/releases/linux-arm64-release/target/nzbhydra2-${project.version}-arm64-linux.zip ${basedir}/releases/windows-release/target/nzbhydra2-${project.version}-windows.zip @@ -105,25 +104,24 @@ 17 17 - 3.0.4 - 3.0.4 - 3.0.4 - 6.0.6 - 3.0.3 + 3.1.4 + 3.1.4 + 3.1.4 + 6.0.12 + 3.1.4 3.1.0 - 2.14.0 + 2.15.0 1.18.30 - 1.4.5 + 1.4.11 23.0 4.13.2 - 4.10.0 + 4.11.0 7.2 3.12.0 2.11.0 9.10.2 2.3.0.1 3.0.1 - 3.6.2 UTF-8 2.0.0 6.8.1 diff --git a/releases/pom.xml b/releases/pom.xml index d28960e17..91d922899 100644 --- a/releases/pom.xml +++ b/releases/pom.xml @@ -19,7 +19,6 @@ - 3.6.2 UTF-8 diff --git a/tests/system/src/test/java/org/nzbhydra/AuthLoginTest.java b/tests/system/src/test/java/org/nzbhydra/AuthLoginTest.java index 96522edb8..88235fe16 100644 --- a/tests/system/src/test/java/org/nzbhydra/AuthLoginTest.java +++ b/tests/system/src/test/java/org/nzbhydra/AuthLoginTest.java @@ -24,9 +24,9 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; -import org.springframework.util.Base64Utils; import java.nio.charset.StandardCharsets; +import java.util.Base64; import java.util.Collections; import static org.assertj.core.api.Assertions.assertThat; @@ -48,9 +48,10 @@ public void shouldRequireLogin() { if (configManager.getCurrentConfig().getAuth().getAuthType() == AuthType.NONE) { return; } - HydraResponse hydraResponse = hydraClient.get("/config/main", Collections.singletonMap("Authorization", "Basic " + new String(Base64Utils.encode("wrong:password".getBytes(StandardCharsets.UTF_8))))).dontRaiseIfUnsuccessful(); + + HydraResponse hydraResponse = hydraClient.get("/config/main", Collections.singletonMap("Authorization", "Basic " + new String(Base64.getEncoder().encode("wrong:password".getBytes(StandardCharsets.UTF_8))))).dontRaiseIfUnsuccessful(); assertThat(hydraResponse.getStatus()).isEqualTo(401); - hydraResponse = hydraClient.get("/config/main", Collections.singletonMap("Authorization", "Basic " + new String(Base64Utils.encode("test:test".getBytes(StandardCharsets.UTF_8))))); + hydraResponse = hydraClient.get("/config/main", Collections.singletonMap("Authorization", "Basic " + new String(Base64.getEncoder().encode("test:test".getBytes(StandardCharsets.UTF_8))))); assertThat(hydraResponse.getStatus()).isEqualTo(200); }