mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
15 lines
392 B
Python
15 lines
392 B
Python
|
|
from src.services.proxy_node.tunnel_config import TunnelRelayConfig
|
||
|
|
|
||
|
|
|
||
|
|
def test_local_relay_url_uses_http_path() -> None:
|
||
|
|
config = TunnelRelayConfig(
|
||
|
|
enabled=True,
|
||
|
|
url="http://127.0.0.1:8084",
|
||
|
|
connect_timeout_seconds=1.0,
|
||
|
|
)
|
||
|
|
|
||
|
|
assert (
|
||
|
|
config.local_relay_url("node a/1")
|
||
|
|
== "http://127.0.0.1:8084/api/internal/tunnel/relay/node%20a%2F1"
|
||
|
|
)
|