feat(auto-repair): route ssh diagnostics through mcp gateway
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
run-migration / migrate (push) Successful in 9s
CD Pipeline / tests (push) Successful in 1m11s
CD Pipeline / build-and-deploy (push) Successful in 3m17s
CD Pipeline / post-deploy-checks (push) Successful in 1m16s
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
run-migration / migrate (push) Successful in 9s
CD Pipeline / tests (push) Successful in 1m11s
CD Pipeline / build-and-deploy (push) Successful in 3m17s
CD Pipeline / post-deploy-checks (push) Successful in 1m16s
This commit is contained in:
@@ -21,6 +21,18 @@ async def test_ssh_diagnose_is_registered_read_only_tool():
|
||||
assert "df -h" in command
|
||||
|
||||
|
||||
def test_ssh_diagnose_can_include_container_read_only_context():
|
||||
provider = SSHProvider()
|
||||
|
||||
command = provider._build_command(
|
||||
"ssh_diagnose",
|
||||
{"container_name": "sentry-self-hosted-clickhouse-1"},
|
||||
)
|
||||
|
||||
assert "docker stats --no-stream sentry-self-hosted-clickhouse-1" in command
|
||||
assert "docker inspect sentry-self-hosted-clickhouse-1" in command
|
||||
|
||||
|
||||
def test_ssh_provider_uses_ollama_user_for_188():
|
||||
provider = SSHProvider()
|
||||
|
||||
@@ -32,6 +44,8 @@ def test_ssh_provider_uses_ollama_user_for_188():
|
||||
"raw,expected",
|
||||
[
|
||||
("192.168.0.110:9100", "192.168.0.110"),
|
||||
("110:9100", "192.168.0.110"),
|
||||
("188", "192.168.0.188"),
|
||||
("wooo@192.168.0.110", "192.168.0.110"),
|
||||
("ssh://wooo@192.168.0.110:22", "192.168.0.110"),
|
||||
("192.168.0.188", "192.168.0.188"),
|
||||
|
||||
Reference in New Issue
Block a user