Files
cleveragents-core/robot/tdd_e2e_implicit_init.robot
T
brent.edwards 3539e33929
CI / benchmark-publish (pull_request) Has been skipped
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 33s
CI / lint (pull_request) Successful in 3m20s
CI / quality (pull_request) Successful in 4m1s
CI / typecheck (pull_request) Successful in 4m7s
CI / security (pull_request) Successful in 4m11s
CI / integration_tests (pull_request) Successful in 7m36s
CI / unit_tests (pull_request) Successful in 7m41s
CI / docker (pull_request) Successful in 10s
CI / e2e_tests (pull_request) Successful in 11m37s
CI / coverage (pull_request) Successful in 12m0s
CI / status-check (pull_request) Successful in 1s
CI / benchmark-regression (pull_request) Successful in 57m17s
test(tdd): stabilize implicit-init integration helper
2026-03-28 01:56:40 +00:00

46 lines
2.5 KiB
Plaintext

*** Settings ***
Documentation TDD Bug #1023 — CLI commands should succeed without explicit init
... Integration smoke tests verifying that DB-dependent CLI commands
... (e.g., ``resource add``, ``project create``) succeed in a fresh
... environment where ``agents init`` has NOT been run, when
... ``CLEVERAGENTS_AUTO_APPLY_MIGRATIONS=true`` is set.
...
... Bug #1023 reports that ``CLEVERAGENTS_AUTO_APPLY_MIGRATIONS=true``
... triggers migrations on an existing database but does NOT create
... the database file or its parent directory structure.
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Variables ***
${HELPER} ${CURDIR}/helper_tdd_e2e_implicit_init.py
*** Test Cases ***
TDD Resource Add Succeeds Without Explicit Init
[Documentation] Verify that ``resource add`` succeeds in a fresh
... environment without prior ``agents init`` when
... ``CLEVERAGENTS_AUTO_APPLY_MIGRATIONS=true`` is set.
... The helper exits 0 with a sentinel when the command
... succeeds (bug is fixed), and exits 1 when the bug is
... present (OperationalError).
[Tags] tdd_expected_fail tdd_issue tdd_issue_1023
${result}= Run Process ${PYTHON} ${HELPER} resource-add-no-init cwd=${WORKSPACE} timeout=120s on_timeout=kill
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} tdd-resource-add-no-init-ok
TDD Project Create Succeeds Without Explicit Init
[Documentation] Verify that ``project create`` succeeds in a fresh
... environment without prior ``agents init`` when
... ``CLEVERAGENTS_AUTO_APPLY_MIGRATIONS=true`` is set.
... The helper exits 0 with a sentinel when the command
... succeeds (bug is fixed), and exits 1 when the bug is
... present (OperationalError).
[Tags] tdd_expected_fail tdd_issue tdd_issue_1023
${result}= Run Process ${PYTHON} ${HELPER} project-create-no-init cwd=${WORKSPACE} timeout=120s on_timeout=kill
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} tdd-project-create-no-init-ok