*** Settings ***
Documentation    Integration tests for actor remove CLI format output
Resource         ${CURDIR}/common.resource
Suite Setup      Setup Test Environment
Suite Teardown   Cleanup Test Environment

*** Variables ***
${HELPER}    ${CURDIR}/helper_actor_remove_cli.py

*** Test Cases ***
Actor Remove Format JSON Emits Spec Envelope
    [Documentation]    Verify that ``actor remove --format json`` emits a spec-compliant envelope
    [Tags]    actor_remove_cli_format
    ${result}=    Run Process    ${PYTHON}    ${HELPER}    remove-json    cwd=${WORKSPACE}
    Log    ${result.stdout}
    Log    ${result.stderr}
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    actor-remove-json-format-ok
