ad3c828ceb
Add GitWorktreeSandbox.cleanup_stale() and diff_against_head() class methods, create strategy_actor module with resolve_strategy_actor(), add PlanApplyService.correction_diff() method, and fix _get_apply_service() and _get_plan_executor() to use correct API signatures. Add Behave BDD unit tests and Robot Framework integration tests for all new functionality. ISSUES CLOSED: #8628
40 lines
2.1 KiB
Gherkin
40 lines
2.1 KiB
Gherkin
Feature: PlanApplyService correction_diff method
|
|
As a developer
|
|
I want correction_diff to return a diff for a specific correction attempt
|
|
So that users can inspect what changed during a correction
|
|
|
|
Scenario: correction_diff returns rich format when no changeset exists
|
|
Given a pacd service with no changeset for plan "plan-001"
|
|
When I call correction_diff for plan "plan-001" correction "corr-001" with format "rich"
|
|
Then the pacd result should contain "No changeset available"
|
|
|
|
Scenario: correction_diff returns plain format when no changeset exists
|
|
Given a pacd service with no changeset for plan "plan-002"
|
|
When I call correction_diff for plan "plan-002" correction "corr-002" with format "plain"
|
|
Then the pacd result should contain "No changeset available"
|
|
|
|
Scenario: correction_diff returns json format when no changeset exists
|
|
Given a pacd service with no changeset for plan "plan-003"
|
|
When I call correction_diff for plan "plan-003" correction "corr-003" with format "json"
|
|
Then the pacd result should contain "No changeset available"
|
|
|
|
Scenario: correction_diff returns diff when changeset exists
|
|
Given a pacd service with a changeset for plan "plan-004"
|
|
When I call correction_diff for plan "plan-004" correction "corr-004" with format "rich"
|
|
Then the pacd result should contain "corr-004"
|
|
|
|
Scenario: correction_diff returns plain diff when changeset exists
|
|
Given a pacd service with a changeset for plan "plan-005"
|
|
When I call correction_diff for plan "plan-005" correction "corr-005" with format "plain"
|
|
Then the pacd result should contain "corr-005"
|
|
|
|
Scenario: correction_diff returns json diff when changeset exists
|
|
Given a pacd service with a changeset for plan "plan-006"
|
|
When I call correction_diff for plan "plan-006" correction "corr-006" with format "json"
|
|
Then the pacd result should contain "corr-006"
|
|
|
|
Scenario: correction_diff returns yaml diff when changeset exists
|
|
Given a pacd service with a changeset for plan "plan-007"
|
|
When I call correction_diff for plan "plan-007" correction "corr-007" with format "yaml"
|
|
Then the pacd result should contain "corr-007"
|