b122ec7ed5
CI / lint (pull_request) Successful in 23s
CI / quality (pull_request) Successful in 51s
CI / typecheck (pull_request) Successful in 1m0s
CI / security (pull_request) Successful in 55s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 32s
CI / push-validation (pull_request) Successful in 26s
CI / e2e_tests (pull_request) Successful in 3m38s
CI / integration_tests (pull_request) Successful in 6m42s
CI / unit_tests (pull_request) Successful in 8m19s
CI / docker (pull_request) Successful in 13s
CI / coverage (pull_request) Successful in 15m23s
CI / status-check (pull_request) Successful in 2s
Remove the local ${PYTHON} python (and python3) variable definitions from
the *** Variables *** sections of all affected robot files. These local
definitions were overriding the pabot-injected venv Python path passed via
--variable PYTHON:/path/to/venv/python, causing tests to use the system
Python (which lacks required packages like structlog, sqlalchemy, etc.)
instead of the nox venv Python.
The correct ${PYTHON} value is already set by Setup Test Environment in
common.resource via sys.executable, and pabot passes it via --variable.
The local fallback definitions are redundant and harmful in parallel runs.
Audit found 56 robot files with the pattern (more than the 9 originally
identified in the issue). All occurrences have been removed.
ISSUES CLOSED: #1309
81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration tests for routing prefix stripping functionality
|
|
Library Process
|
|
Library OperatingSystem
|
|
Library String
|
|
Resource ${CURDIR}/v2_paths.resource
|
|
|
|
*** Variables ***
|
|
${DISCOVERY_CONFIG} ${V2_CONFIG_DIR}/routing_test_discovery_response.yaml
|
|
${BRAINSTORM_CONFIG} ${V2_CONFIG_DIR}/routing_test_goto_brainstorming.yaml
|
|
${NO_PREFIX_CONFIG} ${V2_CONFIG_DIR}/routing_test_no_prefix.yaml
|
|
${SET_TOPIC_CONFIG} ${V2_CONFIG_DIR}/routing_test_set_topic.yaml
|
|
${RUN_CMD} python -m cleveragents actor run
|
|
|
|
*** Test Cases ***
|
|
Routing Prefix Stripping In Application
|
|
[Documentation] Test that internal routing prefixes are stripped from output
|
|
... SEC1: Requires code blocks for producing prefixed output — skipped.
|
|
[Tags] routing prefix integration code_blocks
|
|
|
|
# Run the application with DISCOVERY_RESPONSE prefix
|
|
${result}= Run Process ${PYTHON} -m cleveragents actor run
|
|
... -c ${DISCOVERY_CONFIG}
|
|
... --unsafe
|
|
... --allow-rxpy-in-run-mode
|
|
... test-actor test input
|
|
... stderr=STDOUT
|
|
... timeout=120s on_timeout=kill
|
|
|
|
# Check that the output does NOT contain the prefix
|
|
Should Not Contain ${result.stdout} DISCOVERY_RESPONSE:
|
|
Should Contain ${result.stdout} What topic would you like to write about?
|
|
|
|
Multiple Routing Prefixes Are Stripped
|
|
[Documentation] Test that various routing prefixes are all stripped correctly
|
|
... SEC1: Requires code blocks for producing prefixed output — skipped.
|
|
[Tags] routing prefix integration code_blocks
|
|
|
|
# Test GOTO_BRAINSTORMING prefix
|
|
${result}= Run Process ${PYTHON} -m cleveragents actor run
|
|
... -c ${BRAINSTORM_CONFIG}
|
|
... --unsafe
|
|
... --allow-rxpy-in-run-mode
|
|
... test-actor test input
|
|
... stderr=STDOUT
|
|
... timeout=120s on_timeout=kill
|
|
|
|
Should Not Contain ${result.stdout} GOTO_BRAINSTORMING:
|
|
Should Contain ${result.stdout} Let's brainstorm ideas
|
|
|
|
Content Without Prefix Remains Unchanged
|
|
[Documentation] Test that content without routing prefixes is not modified
|
|
... SEC1: Requires code blocks for producing static output — skipped.
|
|
[Tags] routing prefix integration code_blocks
|
|
|
|
${result}= Run Process ${PYTHON} -m cleveragents actor run
|
|
... -c ${NO_PREFIX_CONFIG}
|
|
... --unsafe
|
|
... --allow-rxpy-in-run-mode
|
|
... test-actor test input
|
|
... stderr=STDOUT
|
|
... timeout=120s on_timeout=kill
|
|
|
|
Should Contain ${result.stdout} This is normal text without any prefix
|
|
|
|
SET Prefix Family Stripped
|
|
[Documentation] Test that SET_* prefixes used for state updates are stripped
|
|
... SEC1: Requires code blocks for producing prefixed output — skipped.
|
|
[Tags] routing prefix integration code_blocks
|
|
|
|
${result}= Run Process ${PYTHON} -m cleveragents actor run
|
|
... -c ${SET_TOPIC_CONFIG}
|
|
... --unsafe
|
|
... --allow-rxpy-in-run-mode
|
|
... test-actor test input
|
|
... stderr=STDOUT
|
|
... timeout=120s on_timeout=kill
|
|
|
|
Should Not Contain ${result.stdout} SET_TOPIC:
|
|
Should Contain ${result.stdout} Neural networks in cognitive science
|