mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-03 07:23:06 +02:00
Merge branch 'pr-281' into dev
This commit is contained in:
@@ -21,10 +21,10 @@ website: "https://meshmapper.net"
|
||||
brokers:
|
||||
- name: "MeshMapper"
|
||||
enabled: true
|
||||
host: mqtt.meshmapper.cc
|
||||
host: mqtt.meshmapper.net
|
||||
port: 443
|
||||
transport: "websockets"
|
||||
audience: "mqtt.meshmapper.cc"
|
||||
audience: "mqtt.meshmapper.net"
|
||||
use_jwt_auth: true
|
||||
format: letsmesh
|
||||
retain_status: false
|
||||
|
||||
@@ -76,7 +76,7 @@ def test_get_preset_letsmesh_carries_ui_metadata():
|
||||
|
||||
|
||||
def test_get_preset_meshmapper_is_single_broker_mc2mqtt():
|
||||
"""MeshMapper preset is a single MC2MQTT broker on mqtt.meshmapper.cc.
|
||||
"""MeshMapper preset is a single MC2MQTT broker on mqtt.meshmapper.net.
|
||||
|
||||
The preset intentionally re-uses the `letsmesh` format value because
|
||||
MeshMapper today speaks the standard MC2MQTT wire format with no
|
||||
@@ -89,8 +89,8 @@ def test_get_preset_meshmapper_is_single_broker_mc2mqtt():
|
||||
brokers = preset.get("brokers", [])
|
||||
assert len(brokers) == 1
|
||||
broker = brokers[0]
|
||||
assert broker["host"] == "mqtt.meshmapper.cc"
|
||||
assert broker["audience"] == "mqtt.meshmapper.cc"
|
||||
assert broker["host"] == "mqtt.meshmapper.net"
|
||||
assert broker["audience"] == "mqtt.meshmapper.net"
|
||||
assert broker.get("format") == "letsmesh"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user