mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-08-28 08:34:16 +00:00
feat(tests): add comprehensive security and robustness tests for archives and deep links
This commit is contained in:
@@ -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": {}})
|
||||
|
||||
Reference in New Issue
Block a user