From 10cf62aa34d088ce23bfbdafc49d6d5b6c7cfff2 Mon Sep 17 00:00:00 2001 From: dillanb-hashi Date: Tue, 28 Apr 2026 13:35:15 -0700 Subject: [PATCH] test(e2e): Install ffmpeg on windows worker (#6659) --- .../scripts/setup.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 b/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 index 905534bab3..4a2508c262 100644 --- a/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 +++ b/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 @@ -32,6 +32,18 @@ $Task = Get-ScheduledTask -TaskName "boundary" $Task.Settings.ExecutionTimeLimit = "PT0H" # zero hours Set-ScheduledTask $Task +# Install chocolatey (package manager) +powershell -c "irm https://community.chocolatey.org/install.ps1|iex" + +# Refreshes env to get choco on path +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") +$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." +Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1" +refreshenv + +# Install ffmpeg for session recording +choco install ffmpeg -y + # Restart the computer to apply changes # Needed for adding the computer to the domain from the user_data script shutdown -r -t 10