feat: add allow_insecure_tls parameter to agent configuration

This commit is contained in:
Abhimanyu Saharan
2026-02-22 20:24:41 +05:30
parent 56f4964332
commit 62e3c267b5
3 changed files with 9 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ class _GatewayStub:
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False

View File

@@ -43,6 +43,7 @@ class _GatewayStub:
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False

View File

@@ -119,6 +119,7 @@ class _GatewayStub:
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False
@@ -230,6 +231,7 @@ async def test_provision_overwrites_user_md_on_first_provision(monkeypatch):
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False
class _Manager(agent_provisioning.BaseAgentLifecycleManager):
@@ -298,6 +300,7 @@ async def test_set_agent_files_update_preserves_user_md_even_when_size_zero():
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False
class _Manager(agent_provisioning.BaseAgentLifecycleManager):
@@ -363,6 +366,8 @@ async def test_set_agent_files_update_preserves_nonmissing_user_md():
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False
class _Manager(agent_provisioning.BaseAgentLifecycleManager):
def _agent_id(self, agent):
@@ -427,6 +432,8 @@ async def test_set_agent_files_update_overwrite_writes_preserved_user_md():
url: str
token: str | None
workspace_root: str
allow_insecure_tls: bool = False
disable_device_pairing: bool = False
class _Manager(agent_provisioning.BaseAgentLifecycleManager):
def _agent_id(self, agent):