mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-11-04 02:20:50 +01:00 
			
		
		
		
	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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user