From 2a268bf6fe448f6a594cc9f0c0ed3c8e6b6dc6d3 Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Mon, 28 Jul 2025 10:24:36 +0200 Subject: [PATCH] :recycle: fix test remote URL for remote source --- .github/workflows/_test-integrations.yml | 1 + src/test/java/com/mindee/MindeeClientV2IT.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_test-integrations.yml b/.github/workflows/_test-integrations.yml index 98d644b95..6fefaa7b3 100644 --- a/.github/workflows/_test-integrations.yml +++ b/.github/workflows/_test-integrations.yml @@ -35,5 +35,6 @@ jobs: WORKFLOW_ID: ${{ secrets.WORKFLOW_ID_SE_TESTS }} MINDEE_V2_API_KEY: ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }} MINDEE_V2_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }} + MINDEE_V2_SE_TESTS_BLANK_PDF_URL: ${{ secrets.MINDEE_V2_SE_TESTS_BLANK_PDF_URL }} run: | mvn clean test-compile failsafe:integration-test failsafe:verify diff --git a/src/test/java/com/mindee/MindeeClientV2IT.java b/src/test/java/com/mindee/MindeeClientV2IT.java index 4fd03ee1b..9242b709d 100644 --- a/src/test/java/com/mindee/MindeeClientV2IT.java +++ b/src/test/java/com/mindee/MindeeClientV2IT.java @@ -145,9 +145,7 @@ void invalidJob_mustThrowError() { @Test @DisplayName("URL input source - A url param should not raise errors.") void urlInputSource_mustNotRaiseErrors() throws IOException, InterruptedException { - URLInputSource urlSource = URLInputSource.builder( - "https://upload.wikimedia.org/wikipedia/commons/1/1d/Blank_Page.pdf" - ).build(); + URLInputSource urlSource = URLInputSource.builder(System.getenv("MINDEE_V2_SE_TESTS_BLANK_PDF_URL")).build(); InferenceParameters options = InferenceParameters .builder(modelId)