2022-12-06 19:49:35 +01:00
|
|
|
#
|
|
|
|
|
# Copyright 2021, Alexis La Goutte <alexis dot lagoutte at gmail dot com>
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
#
|
|
|
|
|
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
|
|
|
|
|
Param()
|
|
|
|
|
|
|
|
|
|
$script:pester_site1 = "pester_site1"
|
|
|
|
|
|
2024-09-01 00:25:46 +02:00
|
|
|
. ../credential.ps1
|
|
|
|
|
#TODO: Add check if no ipaddress/token info...
|
|
|
|
|
|
2022-12-06 19:49:35 +01:00
|
|
|
$Credential = New-Object System.Management.Automation.PSCredential("username", (ConvertTo-SecureString $token -AsPlainText -Force))
|
|
|
|
|
$script:invokeParams = @{
|
|
|
|
|
hostname = $hostname;
|
|
|
|
|
Credential = $Credential;
|
|
|
|
|
SkipCertificateCheck = $true;
|
|
|
|
|
}
|