Files
cleveragents-core/robot/cli_lifecycle_e2e.robot
T
freemo 48cff5cfe0 refactor(cli): rename plan lifecycle-list and lifecycle-apply to match specification
Renames `plan lifecycle-list` to `plan list` and `plan lifecycle-apply` to `plan apply` to align with the specification's canonical command names. Removes legacy V2 plan commands that occupied those names.

- Renamed CLI command registrations from lifecycle-list/lifecycle-apply to list/apply
- Removed legacy V2 apply and list commands (~200 lines)
- Updated apply shortcut in main.py to delegate to v3 lifecycle
- Added defensive null check for plan existence in apply command
- Updated 63+ test, doc, and benchmark files for consistency

Closes #881

Co-authored-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Co-committed-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
2026-04-02 19:09:04 +00:00

74 lines
3.3 KiB
Plaintext

*** Settings ***
Documentation End-to-end smoke tests for action -> plan -> execute -> apply lifecycle via CLI helpers
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Variables ***
${HELPER} ${CURDIR}/helper_cli_lifecycle_e2e.py
*** Test Cases ***
Action Create From Config Via CLI
[Documentation] Create an action from a YAML config file and verify it succeeds
${result}= Run Process ${PYTHON} ${HELPER} action-create cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-action-create-ok
Plan Use Creates Plan In Strategize Phase
[Documentation] Use an action to create a plan in Strategize phase
${result}= Run Process ${PYTHON} ${HELPER} plan-use cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-use-ok
Plan Execute Transitions To Execute Phase
[Documentation] Execute a plan, transitioning from Strategize to Execute
${result}= Run Process ${PYTHON} ${HELPER} plan-execute cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-execute-ok
Plan Lifecycle Apply Transitions To Apply Phase
[Documentation] Apply a plan, transitioning from Execute to Apply
${result}= Run Process ${PYTHON} ${HELPER} plan-apply cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-apply-ok
Plan Status Shows Plan Details
[Documentation] Verify plan status renders plan details
${result}= Run Process ${PYTHON} ${HELPER} plan-status cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-status-ok
Plan Cancel Cancels Non-Terminal Plan
[Documentation] Cancel a non-terminal plan
${result}= Run Process ${PYTHON} ${HELPER} plan-cancel cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-cancel-ok
Full Lifecycle Action To Apply
[Documentation] End-to-end: create action, use it, execute, apply
${result}= Run Process ${PYTHON} ${HELPER} full-lifecycle cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-full-e2e-ok
Plan Lifecycle List Shows Plans
[Documentation] Verify list renders plan table
${result}= Run Process ${PYTHON} ${HELPER} plan-list cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} cli-lifecycle-plan-list-ok