48cff5cfe0
CI / build (push) Successful in 18s
CI / lint (push) Failing after 31s
CI / helm (push) Successful in 33s
CI / typecheck (push) Successful in 50s
CI / security (push) Failing after 51s
CI / coverage (push) Has been skipped
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Failing after 1m50s
CI / docker (push) Has been skipped
CI / quality (push) Successful in 3m43s
CI / integration_tests (push) Has been cancelled
CI / e2e_tests (push) Has been cancelled
CI / benchmark-publish (push) Has been cancelled
CI / status-check (push) Has been cancelled
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>
54 lines
2.7 KiB
Plaintext
54 lines
2.7 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke tests for Plan CLI spec alignment (use/list/status flags)
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_plan_cli_spec.py
|
|
|
|
*** Test Cases ***
|
|
Plan Use Accepts Positional Projects
|
|
[Documentation] Verify that ``plan use`` accepts multiple positional projects
|
|
${result}= Run Process ${PYTHON} ${HELPER} use-positional-projects cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-use-positional-ok
|
|
|
|
Plan Use Accepts Automation Profile Flag
|
|
[Documentation] Verify that ``plan use --automation-profile`` is accepted
|
|
${result}= Run Process ${PYTHON} ${HELPER} use-automation-profile cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-use-profile-ok
|
|
|
|
Plan Use Accepts Invariant Flag
|
|
[Documentation] Verify that ``plan use --invariant`` is accepted (repeatable)
|
|
${result}= Run Process ${PYTHON} ${HELPER} use-invariant cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-use-invariant-ok
|
|
|
|
Plan Use Accepts Actor Override Flags
|
|
[Documentation] Verify that plan use accepts actor override flags
|
|
${result}= Run Process ${PYTHON} ${HELPER} use-actor-overrides cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-use-actors-ok
|
|
|
|
Plan Lifecycle List Accepts Filter Flags
|
|
[Documentation] Verify that ``plan list`` accepts --phase, --state, --project, --action
|
|
${result}= Run Process ${PYTHON} ${HELPER} list-filters cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-list-filters-ok
|
|
|
|
Plan Status Renders Required Fields
|
|
[Documentation] Verify that ``plan status`` renders action_name, phase, state, projects, args, timestamps
|
|
${result}= Run Process ${PYTHON} ${HELPER} status-fields cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-status-fields-ok
|
|
|
|
Plan Cancel Accepts Reason Flag
|
|
[Documentation] Verify that ``plan cancel --reason`` is accepted
|
|
${result}= Run Process ${PYTHON} ${HELPER} cancel-reason cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} plan-cli-cancel-reason-ok
|