Files
cleveragents-core/features/a2a_facade_coverage_boost.feature
T
freemo ec0b7631d0
CI / lint (push) Successful in 12s
CI / build (push) Successful in 15s
CI / quality (push) Successful in 23s
CI / typecheck (push) Successful in 36s
CI / benchmark-regression (push) Has been skipped
CI / security (push) Successful in 46s
CI / unit_tests (push) Successful in 3m3s
CI / integration_tests (push) Successful in 3m31s
CI / docker (push) Successful in 40s
CI / coverage (push) Successful in 5m34s
CI / benchmark-publish (push) Successful in 19m15s
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 13s
CI / build (pull_request) Successful in 14s
CI / quality (pull_request) Successful in 17s
CI / security (pull_request) Successful in 34s
CI / typecheck (pull_request) Has been cancelled
CI / unit_tests (pull_request) Has been cancelled
CI / coverage (pull_request) Has been cancelled
CI / benchmark-regression (pull_request) Has been cancelled
CI / integration_tests (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
refactor(a2a): rename ACP module and symbols to A2A standard
Renamed src/cleveragents/acp/ to src/cleveragents/a2a/ and all 13
Acp* classes to A2a* per ADR-047 (A2A Standard Adoption). Updated
all imports, structlog event names (acp.* → a2a.*), field names
(acp_version → a2a_version), and test references across the entire
codebase. This is a cosmetic rename only — no behavioral changes.

ISSUES CLOSED: #688
2026-03-12 14:38:57 +00:00

85 lines
4.9 KiB
Gherkin

Feature: A2A local facade coverage boost — uncovered validation paths
As a developer maintaining the A2A local facade
I want all error-handling and validation paths exercised
So that edge-case regressions are caught early
# ---------------------------------------------------------------
# Constructor validation (line 82)
# ---------------------------------------------------------------
Scenario: Constructing A2aLocalFacade with a non-dict raises TypeError
When I try to create an A2aLocalFacade with a non-dict services argument
Then a TypeError should be raised with message "services must be a dict or None"
# ---------------------------------------------------------------
# plan.execute — empty plan_id with service wired (line 256)
# ---------------------------------------------------------------
Scenario: plan.execute with empty plan_id and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.execute" with params {"plan_id": ""}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
Scenario: plan.execute with missing plan_id param and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.execute" with params {}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
# ---------------------------------------------------------------
# plan.status — empty plan_id with service wired (line 266)
# ---------------------------------------------------------------
Scenario: plan.status with empty plan_id and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.status" with params {"plan_id": ""}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
Scenario: plan.status with missing plan_id param and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.status" with params {}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
# ---------------------------------------------------------------
# plan.diff — empty plan_id with service wired (line 281)
# ---------------------------------------------------------------
Scenario: plan.diff with empty plan_id and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.diff" with params {"plan_id": ""}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
Scenario: plan.diff with missing plan_id param and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.diff" with params {}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
# ---------------------------------------------------------------
# plan.apply — empty plan_id with service wired (line 295)
# ---------------------------------------------------------------
Scenario: plan.apply with empty plan_id and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.apply" with params {"plan_id": ""}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"
Scenario: plan.apply with missing plan_id param and wired service returns error
Given a coverage-boost facade with a mock PlanLifecycleService
When I dispatch coverage-boost operation "plan.apply" with params {}
Then the coverage-boost response status should be "error"
And the coverage-boost response error code should be "INTERNAL_ERROR"
And the coverage-boost response error message should contain "plan_id is required"