feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315) * fix(network): address shared proxy review regressions * test(network): align rebased OAuth fixtures with runtime admission * fix(webui): configure shared proxy without leaving connection drafts * feat(webui): add optional shared proxy authentication editor * fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
1 parent
872a83340d
commit
084b6bb394
181 files changed
+3740
-807
No files matched your search
@@ -912,11 +912,13 @@ def test_discover_enabled_warns_for_enabled_package_import_errors():
|
||||
# Manager _init_channels with dict config
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def test_manager_loads_plugin_from_dict_config(monkeypatch):
|
||||
"""ChannelManager should instantiate a channel package from a raw dict config."""
|
||||
@pytest.mark.parametrize("proxy", ["", "http://127.0.0.1:7890"])
|
||||
def test_manager_loads_plugin_from_dict_config(monkeypatch, proxy):
|
||||
"""Existing two-argument plugins work with or without a shared proxy configured."""
|
||||
from nanobot.channels.manager import ChannelManager
|
||||
|
||||
fake_config = Config.model_validate({
|
||||
"network": {"proxy": proxy},
|
||||
"channels": {
|
||||
"fakeplugin": {"enabled": True, "allowFrom": ["*"]},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user