Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions contrib/spring-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,16 +668,19 @@ The library includes comprehensive integration tests for different providers:
### Running Integration Tests

```bash
# Opt in to integration tests (gates the Gemini and Ollama tests)
# Opt in to GeminiApiIntegrationTest
export ADK_RUN_INTEGRATION_TESTS=true
# Set Gemini model name for integration tests
export GEMINi_MODEL=gemini-3.8-flash
export GEMINI_MODEL=gemini-3.8-flash

# Set required environment variables
export OPENAI_API_KEY=your_key
export GOOGLE_CLOUD_PROJECT=your_project_id
export ANTHROPIC_API_KEY=your_key

# Opt in to LocalModelIntegrationTest, which runs Ollama in Docker
export ADK_RUN_LOCAL_MODEL_TESTS=true

# Run specific integration test
mvn test -Dtest=OpenAiApiIntegrationTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import org.springframework.ai.ollama.api.OllamaApi;
import org.springframework.ai.ollama.api.OllamaChatOptions;

// @Disabled("To avoid making the assumption that Ollama is available in the CI pipeline")
@EnabledIfEnvironmentVariable(named = "ADK_RUN_INTEGRATION_TESTS", matches = "true")
/** Needs Docker for Ollama; runs only when {@code ADK_RUN_LOCAL_MODEL_TESTS=true}. */
@EnabledIfEnvironmentVariable(named = "ADK_RUN_LOCAL_MODEL_TESTS", matches = "true")
class LocalModelIntegrationTest {

private static OllamaTestContainer ollamaContainer;
Expand Down
Loading