NetboxPS/Tests/common.ps1
Alexis La Goutte d7c008871d
Tests (integration) DCIM (#34)
* Tests: Add Initial support of Integration (using Pester v5)

* Site: Add Tests for New/Get/Remove (DCIM) Site
2022-12-06 13:49:35 -05:00

19 lines
No EOL
611 B
PowerShell

#
# 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"
$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...