Files
placeholder/robot/project_context_set_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

37 lines
2.0 KiB
Plaintext

*** Settings ***
Documentation Smoke tests for project context set --execution-env-priority flag (Bug #1079)
...
... Regression tests for bug #1079: verifies the ``--execution-env-priority``
... flag on ``project context set`` works correctly.
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
Force Tags tdd_issue tdd_issue_1079
*** Variables ***
${HELPER} ${CURDIR}/helper_project_context_set_exec_env_priority.py
*** Test Cases ***
Project Context Set Accepts Execution Env Priority Override
[Documentation] Verify that ``project context set --execution-env-priority override``
... works with ``--execution-environment``. Currently fails due to bug #1079.
${result}= Run Process ${PYTHON} ${HELPER} set-env-priority-override cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} project-context-set-env-priority-override-ok
Project Context Set Accepts Execution Env Priority Fallback
[Documentation] Verify that ``project context set --execution-env-priority fallback``
... works with ``--execution-environment``. Currently fails due to bug #1079.
${result}= Run Process ${PYTHON} ${HELPER} set-env-priority-fallback cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} project-context-set-env-priority-fallback-ok
Project Context Set Persists Execution Env Priority
[Documentation] Verify that execution_env_priority is persisted and retrievable
... after ``project context set``. Currently fails due to bug #1079.
${result}= Run Process ${PYTHON} ${HELPER} set-env-priority-persists cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} project-context-set-env-priority-persists-ok