forked from HAL9000/cleveragents-core
49015c6bee
Add --execution-env-priority flag to 'project context set' command, enabling project-level execution environment priority per spec WF17. - Add execution_env_priority field to ContextConfig domain model - Validate flag value against ExecutionEnvPriority enum (fallback/override) - Persist in context_policy_json, preserving existing execution_environment - Display in 'project context show' Execution Environment section - Merge with existing blob to avoid overwriting previously set fields Tests: 9 Behave scenarios, 26 steps. ISSUES CLOSED: #1079
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
*** Settings ***
|
|
Documentation WF17: Project-level execution environment priority
|
|
... Verifies that project context set --execution-env-priority
|
|
... persists the setting and that project context show displays it.
|
|
Resource ${CURDIR}/common_e2e.resource
|
|
Suite Setup E2E Suite Setup
|
|
Suite Teardown E2E Suite Teardown
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/../helper_wf17_project_exec_env_priority.py
|
|
|
|
*** Test Cases ***
|
|
Project Context Set Accepts Execution Env Priority
|
|
[Documentation] WF17 AC1: project context set accepts --execution-env-priority
|
|
${result}= Run Process ${PYTHON} ${HELPER} set-priority
|
|
... cwd=${WORKSPACE} on_timeout=kill timeout=30s
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} set-priority-ok
|
|
|
|
Project Context Show Displays Execution Env Priority
|
|
[Documentation] WF17 AC2: project context show displays the priority
|
|
${result}= Run Process ${PYTHON} ${HELPER} show-priority
|
|
... cwd=${WORKSPACE} on_timeout=kill timeout=30s
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} show-priority-ok
|