From 7ffec01c53cb0c0a44dadf6e41d49397f72832b4 Mon Sep 17 00:00:00 2001 From: Philip Stadermann Date: Fri, 18 Aug 2023 12:11:46 +0200 Subject: [PATCH] Workflow dispatch: Add environment (production/staging) for testing #284 Use different url for 404 test --- .../de/gdata/test/integration/RealApiIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/test/java/de/gdata/test/integration/RealApiIntegrationTests.java b/java/src/test/java/de/gdata/test/integration/RealApiIntegrationTests.java index dd2786a3..de386e1e 100644 --- a/java/src/test/java/de/gdata/test/integration/RealApiIntegrationTests.java +++ b/java/src/test/java/de/gdata/test/integration/RealApiIntegrationTests.java @@ -344,7 +344,7 @@ public void forUrl_WithUrlNull_ThrowsNullPointerException() throws Exception { @Test public void forUrl_WithUrlWithStatusCode4xx_ThrowsVaasClientException() throws Exception { var vaas = this.getVaasWithCredentials(); - var url_1 = new URL("https://gdata.de/nocontenthere"); + var url_1 = new URL("https://upload.production.vaas.gdatasecurity.de/nocontenthere"); var e = assertThrows(VaasClientException.class, () -> vaas.forUrl(url_1)); assertEquals("Call failed with status code 404 (Not Found): GET https://www.gdata.de/nocontenthere", e.getMessage()); } @@ -443,4 +443,4 @@ private Vaas getVaasWithCredentials() return client; } -} \ No newline at end of file +}