diff --git a/CHANGELOG.md b/CHANGELOG.md index f79c3fca3..42185e39e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ - New-CimCredentialInstance - Add-TypeAssembly - New-ADDirectoryContext + - Removed unnecessary Script Analyzer rule overrides from tests. - Changes to xADManagedServiceAccount - Added a requirement to README stating "Group Managed Service Accounts need at least one Windows Server 2012 Domain Controller" diff --git a/Tests/Unit/MSFT_xADComputer.Tests.ps1 b/Tests/Unit/MSFT_xADComputer.Tests.ps1 index 06748d2bb..4a07e3672 100644 --- a/Tests/Unit/MSFT_xADComputer.Tests.ps1 +++ b/Tests/Unit/MSFT_xADComputer.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param () - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADComputer' diff --git a/Tests/Unit/MSFT_xADDomain.Tests.ps1 b/Tests/Unit/MSFT_xADDomain.Tests.ps1 index 762c0bca1..dcee15087 100644 --- a/Tests/Unit/MSFT_xADDomain.Tests.ps1 +++ b/Tests/Unit/MSFT_xADDomain.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADDomain' diff --git a/Tests/Unit/MSFT_xADDomainDefaultPasswordPolicy.Tests.ps1 b/Tests/Unit/MSFT_xADDomainDefaultPasswordPolicy.Tests.ps1 index 1561f888d..62d8e716e 100644 --- a/Tests/Unit/MSFT_xADDomainDefaultPasswordPolicy.Tests.ps1 +++ b/Tests/Unit/MSFT_xADDomainDefaultPasswordPolicy.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADDomainDefaultPasswordPolicy' diff --git a/Tests/Unit/MSFT_xADDomainTrust.Tests.ps1 b/Tests/Unit/MSFT_xADDomainTrust.Tests.ps1 index 198089363..3b544a6b2 100644 --- a/Tests/Unit/MSFT_xADDomainTrust.Tests.ps1 +++ b/Tests/Unit/MSFT_xADDomainTrust.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param () - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADDomainTrust' diff --git a/Tests/Unit/MSFT_xADGroup.Tests.ps1 b/Tests/Unit/MSFT_xADGroup.Tests.ps1 index 8f483eeb8..b70235af2 100644 --- a/Tests/Unit/MSFT_xADGroup.Tests.ps1 +++ b/Tests/Unit/MSFT_xADGroup.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADGroup' diff --git a/Tests/Unit/MSFT_xADKDSKey.Tests.ps1 b/Tests/Unit/MSFT_xADKDSKey.Tests.ps1 index fb5cf4ed5..3d4438768 100644 --- a/Tests/Unit/MSFT_xADKDSKey.Tests.ps1 +++ b/Tests/Unit/MSFT_xADKDSKey.Tests.ps1 @@ -1,5 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADKDSKey' diff --git a/Tests/Unit/MSFT_xADManagedServiceAccount.Tests.ps1 b/Tests/Unit/MSFT_xADManagedServiceAccount.Tests.ps1 index 20491e04c..e8c5ba2bc 100644 --- a/Tests/Unit/MSFT_xADManagedServiceAccount.Tests.ps1 +++ b/Tests/Unit/MSFT_xADManagedServiceAccount.Tests.ps1 @@ -1,5 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADManagedServiceAccount' diff --git a/Tests/Unit/MSFT_xADObjectEnabledState.Tests.ps1 b/Tests/Unit/MSFT_xADObjectEnabledState.Tests.ps1 index 44d0cd455..dca2fc433 100644 --- a/Tests/Unit/MSFT_xADObjectEnabledState.Tests.ps1 +++ b/Tests/Unit/MSFT_xADObjectEnabledState.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADObjectEnabledState' diff --git a/Tests/Unit/MSFT_xADOrganizationalUnit.Tests.ps1 b/Tests/Unit/MSFT_xADOrganizationalUnit.Tests.ps1 index eac77cda5..a4cf87b60 100644 --- a/Tests/Unit/MSFT_xADOrganizationalUnit.Tests.ps1 +++ b/Tests/Unit/MSFT_xADOrganizationalUnit.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xADOrganizationalUnit' diff --git a/Tests/Unit/MSFT_xWaitForADDomain.Tests.ps1 b/Tests/Unit/MSFT_xWaitForADDomain.Tests.ps1 index 570e744e6..6dc3223fb 100644 --- a/Tests/Unit/MSFT_xWaitForADDomain.Tests.ps1 +++ b/Tests/Unit/MSFT_xWaitForADDomain.Tests.ps1 @@ -1,6 +1,3 @@ -[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] -param() - $script:dscModuleName = 'xActiveDirectory' $script:dscResourceName = 'MSFT_xWaitForADDomain'