Refactor integration test targets in Makefile and update workflow

- Renamed integration test targets in the Makefile for clarity: `integration-tests` to `integration-tests-all` and added `integration-tests-basic`.
- Updated GitHub Actions workflow to run the new `integration-tests-basic` target.
- Cleaned up the `WithAuth` test class by removing unused imports and simplifying method signatures.
This commit is contained in:
amithkoujalgi
2025-09-29 10:36:13 +05:30
parent f114181fe2
commit 501c35fa44
3 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,6 @@ import io.github.ollama4j.utils.OptionsBuilder;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URISyntaxException;
import java.time.Duration;
import java.util.Collections;
import java.util.HashMap;
@@ -174,14 +173,12 @@ public class WithAuth {
// (e.g., OllamaBaseException or IOException)
// Optionally, you can assert the type/message of the exception if needed
// For now, we treat any exception as a pass for this negative test
return;
}
}
@Test
@Order(2)
void testAskModelWithStructuredOutput()
throws OllamaException, IOException, InterruptedException, URISyntaxException {
void testAskModelWithStructuredOutput() throws OllamaException, IOException {
api.setBearerAuth(BEARER_AUTH_TOKEN);
String model = GENERAL_PURPOSE_MODEL;
api.pullModel(model);