28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke tests for ProjectContextPolicy model
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER_SCRIPT} robot/helper_project_context_policy.py
|
|
|
|
*** Test Cases ***
|
|
Context Policy Serializes Correctly
|
|
[Documentation] Ensure ProjectContextPolicy serializes with expected structure
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} serialize cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} context-policy-serialize-ok
|
|
|
|
Context Policy View Inheritance Resolves
|
|
[Documentation] Ensure resolve_view follows inheritance chain
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} resolve cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} context-policy-resolve-ok
|
|
|
|
Empty Context Policy Defaults To All
|
|
[Documentation] Ensure empty policy defaults to including everything
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} empty cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} context-policy-empty-ok
|