feat(tests): add comprehensive security and robustness tests for archives and deep links

This commit is contained in:
Ivan
2026-04-29 18:27:59 -05:00
parent b7afdad209
commit ef7f42c190
8 changed files with 668 additions and 58 deletions
+21
View File
@@ -412,6 +412,27 @@ async def test_rnode_persists_flow_control_and_id_callsign(temp_dir):
assert saved["airtime_limit_short"] == 33.0
@pytest.mark.asyncio
async def test_rnode_ble_uart_port_persisted(temp_dir):
config = ConfigDict({"reticulum": {}, "interfaces": {}})
async with make_app(temp_dir, config) as handler:
payload = {
"name": "RadioBLE",
"type": "RNodeInterface",
"port": "ble://aa:bb:cc:dd:ee:ff",
"frequency": 868000000,
"bandwidth": 125000,
"txpower": 7,
"spreadingfactor": 8,
"codingrate": 5,
}
response = await handler(make_request(payload))
body = json.loads(response.body)
assert response.status == 200, body
assert config["interfaces"]["RadioBLE"]["port"] == "ble://aa:bb:cc:dd:ee:ff"
@pytest.mark.asyncio
async def test_rnode_frequency_mhz_decimal_normalized_to_hz(temp_dir):
config = ConfigDict({"reticulum": {}, "interfaces": {}})