Skip to content

Commit 41e5cac

Browse files
authored
chore(e2e): Enable audio service (#5988)
1 parent 2316fec commit 41e5cac

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

enos/modules/aws_rdp_member_server/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ do {
125125
# add computer to domain
126126
Add-Computer -DomainName "${var.active_directory_domain}" -Credential $credential
127127
128+
# Enable audio
129+
Set-Service -Name "Audiosrv" -StartupType Automatic
130+
Start-Service -Name "Audiosrv"
131+
128132
Restart-Computer -Force
129133
</powershell>
130134
EOF

enos/modules/aws_windows_client/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ resource "aws_instance" "client" {
181181
182182
## Open the firewall for SSH connections
183183
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
184-
184+
185185
# Create a non-admin user to be used for RDP connection. This
186186
# is needed since the scheduled task that runs pyautogui
187187
# doesn't work in an Administrator context.
@@ -197,6 +197,10 @@ resource "aws_instance" "client" {
197197
Set-ItemProperty -Path $regPath -Name "DefaultUsername" -Value $Username -Type String
198198
Set-ItemProperty -Path $regPath -Name "DefaultPassword" -Value "${local.test_password}" -Type String
199199
Set-ItemProperty -Path $regPath -Name "DefaultDomainName" -Value "$env:COMPUTERNAME" -Type String
200+
201+
# Enable audio
202+
Set-Service -Name "Audiosrv" -StartupType Automatic
203+
Start-Service -Name "Audiosrv"
200204
</powershell>
201205
EOF
202206

0 commit comments

Comments
 (0)