Files
temp/robot/e2e/wf17_project_exec_env_priority.robot
hamza.khyari 49015c6bee fix(cli): implement --execution-env-priority on project context set
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
2026-03-30 14:33:28 +00:00

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