test(e2e): Created module for windows client (#5942)
e2e(test): Created module and scenario for windows client for rdp testing
This commit is contained in:
1 parent
77eee19c59
commit
76fccfb912
12 files changed
+817
-5
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
# Unzip Boundary CLI to the same directory
|
||||
$destination = Split-Path -Path ${boundary_cli_zip_path}
|
||||
Expand-Archive -Path ${boundary_cli_zip_path} -DestinationPath $destination -Force
|
||||
|
||||
# Add Boundary CLI to PATH
|
||||
$existingPath = [Environment]::GetEnvironmentVariable(
|
||||
"Path",
|
||||
[EnvironmentVariableTarget]::Machine
|
||||
)
|
||||
|
||||
$newPath = $existingPath + ";" + $destination
|
||||
[Environment]::SetEnvironmentVariable(
|
||||
"Path",
|
||||
$newPath,
|
||||
[EnvironmentVariableTarget]::Machine
|
||||
)
|
||||
|
||||
# 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 mremoteng
|
||||
choco install mremoteng -y
|
||||
Reference in new issue
Block a user