*** Settings ***
Documentation    Smoke tests for concurrency lock service
Library          Process
Library          OperatingSystem
Library          String

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

*** Test Cases ***
Lock Acquire Release Smoke Test
    [Documentation]    Acquire and release a concurrency lock via helper
    ${result}=    Run Process    ${PYTHON}    ${CURDIR}/helper_concurrency_locks.py
    ...    stderr=STDOUT    timeout=120s    on_timeout=kill
    Log    ${result.stdout}
    Should Contain    ${result.stdout}    PASS: concurrency_locks smoke test
    Should Be Equal As Integers    ${result.rc}    0
