*** Settings ***
Documentation    Integration test for plan use action arguments integrity (#4174)
...              Verifies that plan use does not crash with IntegrityError
...              when the action has arguments already inserted by action create.
Library          Process
Library          OperatingSystem
Library          String

*** Variables ***
${PYTHON}    python

*** Test Cases ***
Plan Use With Action Arguments Does Not Crash
    [Documentation]    Create action with arguments, then plan use should succeed
    ${result}=    Run Process    ${PYTHON}    ${CURDIR}/helper_plan_use_action_args_integrity.py
    ...    stderr=STDOUT    timeout=120s    on_timeout=kill
    Log    ${result.stdout}
    Should Contain    ${result.stdout}    PASS: plan_use_action_args_integrity smoke test
    Should Be Equal As Integers    ${result.rc}    0
