Setup(Tests): fix PSSA about unused variable

This commit is contained in:
Alexis La Goutte 2021-07-29 21:55:01 +02:00
parent 496528d84e
commit 6d06326fa5

View file

@ -47,7 +47,7 @@ Describe "Setup tests" -Tag 'Core', 'Setup' -Fixture {
} }
It "Checks the set credentials" { It "Checks the set credentials" {
$Creds = Set-NetboxCredential -Token (ConvertTo-SecureString -String "faketoken" -Force -AsPlainText) Set-NetboxCredential -Token (ConvertTo-SecureString -String "faketoken" -Force -AsPlainText)
(Get-NetboxCredential).GetNetworkCredential().Password | Should -BeExactly "faketoken" (Get-NetboxCredential).GetNetworkCredential().Password | Should -BeExactly "faketoken"
} }
} }