forked from cleveragents/cleveragents-core
f7993d7309
Align actor add/remove/list/show commands to YAML-first configs, namespaced names, and --format json|yaml|plain output support. Changes: - Add --format option to list, show, add, and update commands - Add --update flag to add command for updating existing actors - Add _actor_spec_dict helper for structured output serialization - Update _print_actor to support format_output rendering - Add Behave feature tests for CLI format scenarios (11 scenarios) - Add Robot Framework integration test for show output fields - Add ASV benchmark for actor CLI parsing overhead - Add CLI reference documentation for actor commands ISSUES CLOSED: #288
34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration tests for actor show CLI output fields
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_actor_cli_show.py
|
|
|
|
*** Test Cases ***
|
|
Actor Show JSON Contains Required Fields
|
|
[Documentation] Verify that ``actor show --format json`` returns all required fields
|
|
${result}= Run Process ${PYTHON} ${HELPER} show-json-fields cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-cli-show-json-fields-ok
|
|
|
|
Actor Show YAML Produces Valid Output
|
|
[Documentation] Verify that ``actor show --format yaml`` produces YAML output
|
|
${result}= Run Process ${PYTHON} ${HELPER} show-yaml-output cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-cli-show-yaml-output-ok
|
|
|
|
Actor List JSON Returns Array
|
|
[Documentation] Verify that ``actor list --format json`` returns a JSON array
|
|
${result}= Run Process ${PYTHON} ${HELPER} list-json-format cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-cli-list-json-format-ok
|