Use temp script for Tower PowerShell deploy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user