@@ -13,16 +13,16 @@ description: >-
1313
1414``` bash
1515# Unit tests (no live appliance required)
16- python -m pytest tests/ -m " not integration"
16+ poetry run python -m pytest tests/ -m " not integration"
1717
1818# Integration tests (requires live appliance)
19- SPP_HOST=< host> SPP_USERNAME=< user> SPP_PASSWORD=< pass> python -m pytest tests/ -m integration
19+ SPP_HOST=< host> SPP_USERNAME=< user> SPP_PASSWORD=< pass> poetry run python -m pytest tests/ -m integration
2020
2121# Single test file
22- python -m pytest tests/test_auth.py -v
22+ poetry run python -m pytest tests/test_auth.py -v
2323
2424# Single test by name
25- python -m pytest tests/ -k " test_password_auth_defaults" -v
25+ poetry run python -m pytest tests/ -k " test_password_auth_defaults" -v
2626```
2727
2828## pytest Configuration
@@ -190,6 +190,19 @@ The test's session-scoped `a2a_env` fixture handles all of this automatically
190190(including ` openssl ` cert generation in a temp directory). Cleanup deletes the
191191trusted cert by thumbprint.
192192
193+ ### TLS Trust for Integration Tests
194+
195+ If the appliance uses a certificate signed by an internal CA, set these
196+ environment variables in addition to the standard test variables:
197+
198+ | Variable | Affects | Description |
199+ | ----------| ---------| -------------|
200+ | ` REQUESTS_CA_BUNDLE ` | All HTTP requests | CA bundle path for ` requests ` |
201+ | ` WEBSOCKET_CLIENT_CA_BUNDLE ` | SignalR event listeners | CA bundle path for WebSocket |
202+
203+ Alternatively, pass the CA path via ` SPP_CA_FILE ` — the test fixtures pass it
204+ as ` verify=<path> ` to client constructors.
205+
193206### A2A ` set_password ` Content-Type
194207
195208A2A ` set_password ` requires ` Content-Type: application/json ` . Use ` json= `
0 commit comments