forked from cleveragents/cleveragents-core
3eecb79003
TDD expected-fail tests proving bug #822 exists: CheckpointService.rollback_to_checkpoint() returns a successful RollbackResult but does not execute git reset --hard. Files modified after the checkpoint remain unchanged after rollback. Also fixes Robot Framework timeout robustness across the entire test suite: all Run Process calls now use on_timeout=kill (prevents SIGTERM-induced -15 exit codes under CI load) and timeouts increased to 120s (prevents premature kills during heavy parallel execution). ISSUES CLOSED: #839
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
*** Settings ***
|
|
Documentation Verify legacy plan commands emit deprecation warnings.
|
|
Library Process
|
|
Library OperatingSystem
|
|
Variables ${CURDIR}/helper_plan_lifecycle_persistence.py
|
|
|
|
*** Variables ***
|
|
${PYTHON} python
|
|
|
|
*** Keywords ***
|
|
Run Python Script
|
|
[Arguments] ${script} @{extra_args}
|
|
${result}= Run Process ${PYTHON} @{extra_args} ${CURDIR}/legacy_plan_removal_helper.py ${script}
|
|
... env:PYTHONPATH\=src:. timeout=120s on_timeout=kill
|
|
RETURN ${result}
|
|
|
|
*** Test Cases ***
|
|
Legacy Plan Tell Emits Deprecation Warning
|
|
[Documentation] Verify that importing and using legacy PlanService triggers a deprecation warning.
|
|
${result}= Run Python Script plan_service -W all
|
|
Should Contain ${result.stderr} DeprecationWarning
|
|
|
|
Legacy PlanRepository Emits Deprecation Warning
|
|
[Documentation] Verify PlanRepository emits DeprecationWarning on instantiation.
|
|
${result}= Run Python Script plan_repository -W all
|
|
Should Contain ${result.stderr} DeprecationWarning
|
|
|
|
Legacy ChangeRepository Emits Deprecation Warning
|
|
[Documentation] Verify ChangeRepository emits DeprecationWarning on instantiation.
|
|
${result}= Run Python Script change_repository -W all
|
|
Should Contain ${result.stderr} DeprecationWarning
|
|
|
|
V3 Lifecycle Service Does Not Emit Deprecation
|
|
[Documentation] Verify PlanLifecycleService does NOT emit DeprecationWarning.
|
|
${result}= Run Python Script lifecycle_service -W error::DeprecationWarning
|
|
Should Be Equal As Integers ${result.rc} 0
|