d98666651f
CI / lint (pull_request) Successful in 15s
CI / typecheck (pull_request) Successful in 27s
CI / security (pull_request) Successful in 22s
CI / quality (pull_request) Successful in 15s
CI / integration_tests (pull_request) Successful in 4m24s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Successful in 9m27s
CI / lint (push) Waiting to run
CI / typecheck (push) Waiting to run
CI / security (push) Waiting to run
CI / quality (push) Waiting to run
CI / unit_tests (push) Waiting to run
CI / integration_tests (push) Waiting to run
CI / coverage (push) Blocked by required conditions
CI / build (push) Waiting to run
CI / docker (push) Blocked by required conditions
CI / coverage (pull_request) Successful in 6m55s
CI / docker (pull_request) Successful in 39s
- Enforce config-only 'action create --config <file>' (remove legacy inline flags: --name, --strategy-actor, --execution-actor, --definition-of-done, --arg) - Load config via ActionConfigSchema.from_yaml_file() then Action.from_config() with clear validation error surfacing - Remove 'action available' subcommand (no draft state; actions are available by default) - Add REGEX positional arg to 'action list' for name filtering - Add Short Name and Definition of Done summary to all CLI outputs - Add 'action list --namespace/-n' and '--state/-s' filters - Update existing tests to match new config-only create flow - Add features/action_cli_spec_alignment.feature (19 scenarios) - Add robot/action_cli_spec.robot smoke tests - Add benchmarks/action_cli_bench.py ASV benchmarks - Add docs/reference/action_cli.md
48 lines
2.4 KiB
Plaintext
48 lines
2.4 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke tests for Action CLI spec alignment (config-only create, no available command)
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_action_cli_spec.py
|
|
|
|
*** Test Cases ***
|
|
Action Create Requires Config Flag
|
|
[Documentation] Verify that ``action create`` requires the ``--config`` flag
|
|
${result}= Run Process ${PYTHON} ${HELPER} create-requires-config cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-create-requires-config-ok
|
|
|
|
Action Create Rejects Legacy Name Flag
|
|
[Documentation] Verify that ``action create --name`` is rejected
|
|
${result}= Run Process ${PYTHON} ${HELPER} create-rejects-name cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-legacy-flag-rejected
|
|
|
|
Action Available Command Removed
|
|
[Documentation] Verify that the ``available`` subcommand is removed
|
|
${result}= Run Process ${PYTHON} ${HELPER} available-removed cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-available-removed-ok
|
|
|
|
Action List Accepts Namespace And State Filters
|
|
[Documentation] Verify that ``action list`` accepts ``--namespace`` and ``--state``
|
|
${result}= Run Process ${PYTHON} ${HELPER} list-filters cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-list-filters-ok
|
|
|
|
Action Show Accepts Namespaced Name
|
|
[Documentation] Verify that ``action show`` accepts a namespaced name argument
|
|
${result}= Run Process ${PYTHON} ${HELPER} show-name cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-show-name-ok
|
|
|
|
Action Archive Accepts Namespaced Name
|
|
[Documentation] Verify that ``action archive`` accepts a namespaced name argument
|
|
${result}= Run Process ${PYTHON} ${HELPER} archive-name cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} action-cli-archive-name-ok
|