*** Settings ***
Documentation    Smoke tests for domain model helpers
Resource         ${CURDIR}/common.resource
Suite Setup      Setup Test Environment
Suite Teardown   Cleanup Test Environment

*** Variables ***
${HELPER_SCRIPT}    robot/helper_domain_models.py

*** Test Cases ***
Org Domain Model Hydrates Billing
    [Documentation]    Ensure Org + CloudBillingFields instantiate via helper script
    ${result}=    Run Process    ${PYTHON}    ${HELPER_SCRIPT}    org    cwd=${WORKSPACE}
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    org-model-ok

Credits Transaction Domain Model Hydrates
    [Documentation]    Ensure CreditsTransaction instantiates via helper script
    ${result}=    Run Process    ${PYTHON}    ${HELPER_SCRIPT}    credits    cwd=${WORKSPACE}
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    credits-model-ok
