Fix Tests/common.ps: credential.ps1 must be loaded before params are prepared

This commit is contained in:
Pascal Liehne 2024-09-01 00:25:46 +02:00
parent b4781f264a
commit bc8d140ec5
2 changed files with 3 additions and 3 deletions

View file

@ -8,12 +8,12 @@ Param()
$script:pester_site1 = "pester_site1"
. ../credential.ps1
#TODO: Add check if no ipaddress/token info...
$Credential = New-Object System.Management.Automation.PSCredential("username", (ConvertTo-SecureString $token -AsPlainText -Force))
$script:invokeParams = @{
hostname = $hostname;
Credential = $Credential;
SkipCertificateCheck = $true;
}
. ../credential.ps1
#TODO: Add check if no ipaddress/token info...