Skip to content

Commit 5fedaef

Browse files
♻️ fix test remote URL for remote source (#262)
1 parent 1aad244 commit 5fedaef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/_test-integrations.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ jobs:
3535
WORKFLOW_ID: ${{ secrets.WORKFLOW_ID_SE_TESTS }}
3636
MINDEE_V2_API_KEY: ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }}
3737
MINDEE_V2_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}
38+
MINDEE_V2_SE_TESTS_BLANK_PDF_URL: ${{ secrets.MINDEE_V2_SE_TESTS_BLANK_PDF_URL }}
3839
run: |
3940
mvn clean test-compile failsafe:integration-test failsafe:verify

src/test/java/com/mindee/MindeeClientV2IT.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ void invalidJob_mustThrowError() {
145145
@Test
146146
@DisplayName("URL input source - A url param should not raise errors.")
147147
void urlInputSource_mustNotRaiseErrors() throws IOException, InterruptedException {
148-
URLInputSource urlSource = URLInputSource.builder(
149-
"https://upload.wikimedia.org/wikipedia/commons/1/1d/Blank_Page.pdf"
150-
).build();
148+
URLInputSource urlSource = URLInputSource.builder(System.getenv("MINDEE_V2_SE_TESTS_BLANK_PDF_URL")).build();
151149

152150
InferenceParameters options = InferenceParameters
153151
.builder(modelId)

0 commit comments

Comments
 (0)