a808c395f9
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 17s
CI / typecheck (pull_request) Successful in 35s
CI / security (pull_request) Successful in 50s
CI / unit_tests (pull_request) Successful in 2m46s
CI / integration_tests (pull_request) Successful in 3m16s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 5m6s
CI / lint (push) Successful in 13s
CI / quality (push) Successful in 16s
CI / build (push) Successful in 18s
CI / security (push) Successful in 32s
CI / typecheck (push) Successful in 35s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 2m52s
CI / integration_tests (push) Successful in 3m8s
CI / docker (push) Successful in 39s
CI / coverage (push) Successful in 5m53s
CI / benchmark-publish (push) Successful in 16m55s
CI / benchmark-regression (pull_request) Successful in 33m0s
Add 53 new .feature files and corresponding step definition files targeting uncovered lines identified in build/coverage.xml. Fix AmbiguousStep conflicts in 7 pre-existing step files by disambiguating step text. New tests cover: ACP clients/facade, actor CLI/config, application container, ACMS service/strategies, async worker, automation profile CLI, autonomy guardrail, bridge, change model, config CLI/service, context service, cross-plan correction, database models, decision service, decomposition clustering/service, discovery handler, langchain chat provider, langgraph nodes, materializers, multi-project service, plan apply/CLI/lifecycle/model/ preflight/resume/service, PostgreSQL analyzer, project CLI/context CLI, provider registry, reactive application/route, repositories, resolver handler, resource registry service, resume model, retry patterns, sandbox protocol, server CLI, skill CLI/service, skills registry, subplan execution/service, system CLI, UKO loader, UoW, and YAML template engine. Closes #645
52 lines
2.8 KiB
Gherkin
52 lines
2.8 KiB
Gherkin
Feature: Provider Registry Coverage Boost
|
|
As a developer
|
|
I want to cover remaining untested paths in the ProviderRegistry
|
|
So that edge cases in provider selection and creation are verified
|
|
|
|
@unit @providers @registry
|
|
Scenario: Settings default provider is valid but not configured falls through to fallback
|
|
Given a registry where settings default_provider is "openai" but only anthropic key is set
|
|
And CLEVERAGENTS_DEFAULT_PROVIDER env var is cleared
|
|
When I request the default provider type from the boost registry
|
|
Then the boost result should be ProviderType ANTHROPIC
|
|
# Covers lines 335-338: settings_default valid ProviderType but not_configured
|
|
|
|
@unit @providers @registry
|
|
Scenario: Azure deployment resolves from settings when model_id is None
|
|
Given a registry with azure API key and deployment setting "my-azure-deploy"
|
|
And the Azure LangChain client is stubbed for boost
|
|
When I call _create_provider_llm for AZURE with model_id None via boost
|
|
Then the stubbed Azure client deployment_name should be "my-azure-deploy"
|
|
# Covers line 502: self._settings.azure_openai_deployment branch
|
|
|
|
@unit @providers @registry
|
|
Scenario: Azure deployment falls back to gpt-4o when settings deployment is also empty
|
|
Given a registry with azure API key and no deployment setting
|
|
And the Azure LangChain client is stubbed for boost
|
|
When I call _create_provider_llm for AZURE with model_id None via boost
|
|
Then the stubbed Azure client deployment_name should be "gpt-4o"
|
|
# Covers line 503: final "gpt-4o" fallback
|
|
|
|
@unit @providers @registry
|
|
Scenario: Google create_ai_provider uses DEFAULT_MODELS when model_id is empty string
|
|
Given a registry with google API key configured for boost
|
|
When I create an AI provider for google with empty string model_id via boost
|
|
Then the boost AI provider model_id should be "gemini-2.0-flash"
|
|
# Covers line 620: DEFAULT_MODELS.get fallback in Google branch
|
|
|
|
@unit @providers @registry
|
|
Scenario: OpenRouter create_ai_provider raises error when API key is missing
|
|
Given a registry with no API keys for boost
|
|
When I try to create an AI provider for openrouter via boost
|
|
Then a boost ValueError should be raised
|
|
And the boost error message should contain "openrouter"
|
|
And the boost error message should contain "not configured"
|
|
# Covers lines 632-637: OpenRouter not-configured error path
|
|
|
|
@unit @providers @registry
|
|
Scenario: OpenRouter create_ai_provider uses DEFAULT_MODELS when model_id is empty string
|
|
Given a registry with openrouter API key configured for boost
|
|
When I create an AI provider for openrouter with empty string model_id via boost
|
|
Then the boost AI provider model_id should be "anthropic/claude-sonnet-4-20250514"
|
|
# Covers lines 643-644: DEFAULT_MODELS.get fallback in OpenRouter branch
|