8ea00f5185
CI / unit_tests (push) Has been cancelled
CI / benchmark-publish (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / security (push) Has been cancelled
CI / quality (push) Has been cancelled
CI / integration_tests (push) Has been cancelled
CI / e2e_tests (push) Has been cancelled
CI / coverage (push) Has been cancelled
CI / benchmark-regression (push) Has been cancelled
CI / build (push) Has been cancelled
CI / push-validation (push) Has been cancelled
CI / status-check (push) Has been cancelled
CI / docker (push) Has been cancelled
CI / helm (push) Has been cancelled
Co-authored-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Co-committed-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
47 lines
2.4 KiB
Plaintext
47 lines
2.4 KiB
Plaintext
*** Settings ***
|
|
Documentation TDD Issue #1022 — InvariantService invariants lost across CLI invocations
|
|
... Integration tests verifying that invariants added via the CLI
|
|
... persist across simulated process restarts. InvariantService
|
|
... stores invariants in an in-memory dict only, so each CLI
|
|
... invocation starts with an empty service. These tests exercise
|
|
... add-then-list and add-then-remove across fresh service
|
|
... instances. They fail until the bug is fixed; the
|
|
... tag inverts the result so CI passes.
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_tdd_invariant_persistence.py
|
|
|
|
*** Test Cases ***
|
|
TDD Invariant Add Then List Project Across Invocations
|
|
[Documentation] Add a project invariant in invocation 1, list in invocation 2.
|
|
[Tags] tdd_issue tdd_issue_1022 tdd_issue tdd_issue_4318 tdd_expected_fail
|
|
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-then-list-project cwd=${WORKSPACE} timeout=30s on_timeout=kill
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} invariant-persist-project-ok
|
|
|
|
TDD Invariant Add Then List Global Across Invocations
|
|
[Documentation] Add a global invariant in invocation 1, list in invocation 2.
|
|
[Tags] tdd_issue tdd_issue_1022 tdd_issue tdd_issue_4318 tdd_expected_fail
|
|
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-then-list-global cwd=${WORKSPACE} timeout=30s on_timeout=kill
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} invariant-persist-global-ok
|
|
|
|
TDD Invariant Remove Cross Instance
|
|
[Documentation] Add invariant in instance 1, remove by ID in instance 2.
|
|
[Tags] tdd_issue tdd_issue_1022 tdd_issue tdd_issue_4318 tdd_expected_fail
|
|
|
|
${result}= Run Process ${PYTHON} ${HELPER} add-then-remove-cross cwd=${WORKSPACE} timeout=30s on_timeout=kill
|
|
Log ${result.stdout}
|
|
Log ${result.stderr}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} invariant-cross-remove-ok
|