mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-15 02:35:46 +00:00
Fix Tests/common.ps: credential.ps1 must be loaded before params are prepared
This commit is contained in:
parent
b4781f264a
commit
bc8d140ec5
2 changed files with 3 additions and 3 deletions
|
|
@ -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...
|
||||
Loading…
Add table
Reference in a new issue