Dominik
|
cc33fbc545
|
test: add PUT/DELETE, batch delete, query filter, and auth tests
Add ~80 new pytest API integration tests covering previously untested
endpoints and HTTP methods:
- DELETE 204/404 for groups, domains, clients, lists, config array
items, network devices, and info messages
- PUT create/replace round-trips for groups, domains, clients, lists
- PUT error cases (missing body, invalid domain type)
- Batch delete (POST :batchDelete) for groups, domains, clients, lists
- DNS blocking toggle (POST disable + re-enable)
- Auth session logout (DELETE /api/auth) and delete-by-ID
- GET endpoints: clients, config, network gateway/routes, info
host/sensors/metrics, query filters (domain, client_ip, upstream,
blocklist pseudo-upstream), query suggestions, query cursor
pagination, stats database with time ranges, history database
with time ranges
- Search with partial matching
- TOTP credential suggestion (GET /api/auth/totp)
- Config PATCH round-trip (bool and integer, change + verify + restore)
- NTP server protocol-level test (UDP NTPv4 request/response)
- Update test_final.bats known-warning patterns and config write counts
Signed-off-by: Dominik <dl6er@dl6er.de>
|
2026-03-30 21:26:16 +02:00 |
|
Dominik
|
e189c8e823
|
test: add pytest API test files and final BATS validation suite
Add the pytest test files and final BATS suite that were described
in the previous commit but not yet included.
New files:
test/api/conftest.py — shared fixtures (api_session, openapi, ftl)
test/api/pytest.ini — pytest configuration
test/api/test_api.py — HTTP errors, config validation, search,
history, lists, queries, Lua pages
test/api/test_openapi.py — OpenAPI spec validation, teleporter
test/api/test_z_auth.py — auth workflow (app password, login,
rate limiting, password removal)
test/test_final.bats — log validation, config rotation counts,
FTL termination
Signed-off-by: Dominik <dl6er@dl6er.de>
|
2026-03-25 11:28:03 +01:00 |
|