chore(e2e): Enable audio service (#5988)

pull/5991/head^2
Michael Li 6 months ago committed by GitHub
parent 2316fecbd6
commit 41e5cacb7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -125,6 +125,10 @@ do {
# add computer to domain
Add-Computer -DomainName "${var.active_directory_domain}" -Credential $credential
# Enable audio
Set-Service -Name "Audiosrv" -StartupType Automatic
Start-Service -Name "Audiosrv"
Restart-Computer -Force
</powershell>
EOF

@ -181,7 +181,7 @@ resource "aws_instance" "client" {
## Open the firewall for SSH connections
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
# Create a non-admin user to be used for RDP connection. This
# is needed since the scheduled task that runs pyautogui
# doesn't work in an Administrator context.
@ -197,6 +197,10 @@ resource "aws_instance" "client" {
Set-ItemProperty -Path $regPath -Name "DefaultUsername" -Value $Username -Type String
Set-ItemProperty -Path $regPath -Name "DefaultPassword" -Value "${local.test_password}" -Type String
Set-ItemProperty -Path $regPath -Name "DefaultDomainName" -Value "$env:COMPUTERNAME" -Type String
# Enable audio
Set-Service -Name "Audiosrv" -StartupType Automatic
Start-Service -Name "Audiosrv"
</powershell>
EOF

Loading…
Cancel
Save