mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-12 17:32:29 +00:00
* Tests: Add Initial support of Integration (using Pester v5) * Site: Add Tests for New/Get/Remove (DCIM) Site
19 lines
No EOL
611 B
PowerShell
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... |