From 496528d84e1048ef69ebe28b1e823b430dd0c255 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 29 Jul 2021 21:54:13 +0200 Subject: [PATCH] Tests: Suppress warning about use ConvertToSecureString... --- Tests/DCIM.Devices.Tests.ps1 | 4 ++++ Tests/DCIM.Interfaces.Tests.ps1 | 4 ++++ Tests/DCIM.Platforms.Tests.ps1 | 4 ++++ Tests/Helpers.Tests.ps1 | 4 ++++ Tests/IPAM.Tests.ps1 | 4 ++++ Tests/Setup.Tests.ps1 | 4 ++++ Tests/Virtualization.Tests.ps1 | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/Tests/DCIM.Devices.Tests.ps1 b/Tests/DCIM.Devices.Tests.ps1 index 4b7bafa..b3505c3 100644 --- a/Tests/DCIM.Devices.Tests.ps1 +++ b/Tests/DCIM.Devices.Tests.ps1 @@ -11,6 +11,10 @@ DCIM tests. #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/DCIM.Interfaces.Tests.ps1 b/Tests/DCIM.Interfaces.Tests.ps1 index 4ab521a..2c268f9 100644 --- a/Tests/DCIM.Interfaces.Tests.ps1 +++ b/Tests/DCIM.Interfaces.Tests.ps1 @@ -11,6 +11,10 @@ A description of the file. #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/DCIM.Platforms.Tests.ps1 b/Tests/DCIM.Platforms.Tests.ps1 index c13aca6..752957c 100644 --- a/Tests/DCIM.Platforms.Tests.ps1 +++ b/Tests/DCIM.Platforms.Tests.ps1 @@ -11,6 +11,10 @@ A description of the file. #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/Helpers.Tests.ps1 b/Tests/Helpers.Tests.ps1 index 059adcc..bfbbef9 100644 --- a/Tests/Helpers.Tests.ps1 +++ b/Tests/Helpers.Tests.ps1 @@ -11,6 +11,10 @@ Helper functions Pester tests #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/IPAM.Tests.ps1 b/Tests/IPAM.Tests.ps1 index 6851ca0..66a677a 100644 --- a/Tests/IPAM.Tests.ps1 +++ b/Tests/IPAM.Tests.ps1 @@ -11,6 +11,10 @@ IPAM Pester tests #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/Setup.Tests.ps1 b/Tests/Setup.Tests.ps1 index dda6465..3a4cdd6 100644 --- a/Tests/Setup.Tests.ps1 +++ b/Tests/Setup.Tests.ps1 @@ -11,6 +11,10 @@ Setup function Pester tests #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue diff --git a/Tests/Virtualization.Tests.ps1 b/Tests/Virtualization.Tests.ps1 index 7b25f39..f744a20 100644 --- a/Tests/Virtualization.Tests.ps1 +++ b/Tests/Virtualization.Tests.ps1 @@ -11,6 +11,10 @@ Virtualization Pester tests #> +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] +param +( +) Import-Module Pester Remove-Module NetboxPS -Force -ErrorAction SilentlyContinue