diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c540f9bb..d36539d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md) - SqlServerDsc - Added continuous delivery with a new CI pipeline. + - Update build.ps1 from latest template. ### Changed @@ -28,6 +29,9 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md) - The integration test has been temporarily disabled because when the cluster feature is installed it requires a reboot on the Windows Server 2019 build worker. +- SqlDatabaseRole + - Update unit test to have the correct description on the `Describe`-block + for the test of `Set-TargetResource`. ### Fixed diff --git a/build.ps1 b/build.ps1 index a94f13bdd..8b20c403d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -35,15 +35,15 @@ param [Parameter()] $RequiredModulesDirectory = $(Join-Path 'output' 'RequiredModules'), - # Filter which tags to run when invoking Pester tests - # This is used in the Invoke-Pester.pester.build.ps1 tasks [Parameter()] [string[]] - $PesterTag, + $PesterScript, + # Filter which tags to run when invoking Pester tests + # This is used in the Invoke-Pester.pester.build.ps1 tasks [Parameter()] [string[]] - $PesterScript, + $PesterTag, # Filter which tags to exclude when invoking Pester tests # This is used in the Invoke-Pester.pester.build.ps1 tasks @@ -51,6 +51,18 @@ param [string[]] $PesterExcludeTag, + # Filter which tags to run when invoking DSC Resource tests + # This is used in the DscResource.Test.build.ps1 tasks + [Parameter()] + [string[]] + $DscTestTag, + + # Filter which tags to exclude when invoking DSC Resource tests + # This is used in the DscResource.Test.build.ps1 tasks + [Parameter()] + [string[]] + $DscTestExcludeTag, + [Parameter()] [Alias('bootstrap')] [switch]$ResolveDependency, diff --git a/tests/Unit/MSFT_SqlDatabaseRole.Tests.ps1 b/tests/Unit/MSFT_SqlDatabaseRole.Tests.ps1 index d07c29a37..9bcd38180 100644 --- a/tests/Unit/MSFT_SqlDatabaseRole.Tests.ps1 +++ b/tests/Unit/MSFT_SqlDatabaseRole.Tests.ps1 @@ -633,7 +633,7 @@ try Assert-VerifiableMock } - Describe "MSFT_SqlServerRole\Set-TargetResource" -Tag 'Set' { + Describe "MSFT_SqlDatabaseRole\Set-TargetResource" -Tag 'Set' { BeforeEach { Mock -CommandName Connect-SQL -MockWith $mockConnectSQL -Verifiable Mock -CommandName New-Object -MockWith $mockNewObjectDatabaseRole -ParameterFilter {