Use temp script for Tower PowerShell deploy
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-11 11:16:09 +02:00
parent f69f246065
commit 3e220f10d3
4 changed files with 40 additions and 11 deletions
@@ -134,9 +134,11 @@ def test_powershell_tower_deploy_streams_remote_script_to_bash() -> None:
powershell = (ROOT / "scripts" / "deploy_tower.ps1").read_text(encoding="utf-8")
assert "[System.Text.UTF8Encoding]::new($false)" in powershell
assert "$OutputEncoding = $utf8NoBom" in powershell
assert "bash -s" in powershell
assert "$remoteScript | ssh" in powershell
assert "[System.IO.File]::WriteAllText($localScriptPath, $remoteScript, $utf8NoBom)" in powershell
assert "& scp @scpArgs" in powershell
assert "& ssh @sshRunArgs" in powershell
assert "bash '$remoteScriptPath'" in powershell
assert "rm -f '$remoteScriptPath'" in powershell
assert "REMOTE_PATH='$RemotePath'" in powershell
assert "DEPLOY_GEOINTEL_INSTALL_AI='$InstallAi'" in powershell