forked from HAL9000/cleveragents-core
d430d671a0
Extended `_print_actor()` to render the full spec-required output for `agents actor add`: the Actor Added panel now includes a Type field, and three additional panels (Config, Capabilities, Tools) plus a success status line are rendered when `show_add_panels=True`. - Add `Type:` field to the Actor Added panel (from `config_blob["type"]`) - Implement Config panel: Path, Hash, Options count, Nodes count, Edges count - Implement Capabilities panel: bulleted list (rendered only when non-empty) - Implement Tools panel: Rich table with Tool, Read-Only, Safe columns (rendered only when non-empty; string tool entries default to yes/yes) - Add `✓ OK Actor added` success status line after all panels - Pass `config_path` and `show_add_panels=True` from `add()` command - Add Behave BDD scenarios covering each new panel and the success line - Add Robot Framework integration test verifying the full rich output ISSUES CLOSED: #1499
50 lines
2.3 KiB
Plaintext
50 lines
2.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration tests for actor add rich output panels
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_actor_add_rich_output.py
|
|
|
|
*** Test Cases ***
|
|
Actor Add Rich Output Contains Type Field
|
|
[Documentation] Verify that ``actor add`` rich output includes the Type field
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-type-field cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-add-type-field-ok
|
|
|
|
Actor Add Rich Output Contains Config Panel
|
|
[Documentation] Verify that ``actor add`` rich output includes the Config panel
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-config-panel cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-add-config-panel-ok
|
|
|
|
Actor Add Rich Output Contains Capabilities Panel
|
|
[Documentation] Verify that ``actor add`` rich output includes the Capabilities panel
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-capabilities-panel cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-add-capabilities-panel-ok
|
|
|
|
Actor Add Rich Output Contains Tools Panel
|
|
[Documentation] Verify that ``actor add`` rich output includes the Tools panel
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-tools-panel cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-add-tools-panel-ok
|
|
|
|
Actor Add Rich Output Contains Success Line
|
|
[Documentation] Verify that ``actor add`` rich output ends with the success status line
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-success-line cwd=${WORKSPACE}
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} actor-add-success-line-ok
|