Get-SqlDscPreferredModule: Optionally specify which version of the SQL module is imported #1966
Build #16.5.0-PR1966.14 had test failures
Details
- Failed: 5 (0.04%)
- Passed: 12,038 (98.37%)
- Other: 195 (1.59%)
- Total: 12,238
- 91 of 91 class covered (100.00%)
- 7890 of 8673 instruction covered (90.97%)
- 7206 of 7832 line covered (92.01%)
- 307 of 331 method covered (92.75%)
Annotations
azure-pipelines / dsccommunity.SqlServerDsc
DSC_SqlRSSetup_Integration.When using configuration DSC_SqlRSSetup_InstallReportingServicesAsUser_Config.Should be able to call Get-DscConfiguration without throwing
Expected no exception to be thrown, but an exception "Connecting to remote server localhost failed with the following error message : Illegal operation attempted on a registry key that has been marked for deletion. For more information, see the about_Remote_Troubleshooting Help topic." was thrown from D:\a\1\s\tests\Integration\DSC_SqlRSSetup.Integration.Tests.ps1:160 char:48
+ ... urrentConfiguration = Get-DscConfiguration -Verbose -ErrorAction Stop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
Raw output
at } | Should -Not -Throw, D:\a\1\s\tests\Integration\DSC_SqlRSSetup.Integration.Tests.ps1:161
at Invoke-Assertion, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8106
at Should<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8048
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_SqlRSSetup.Integration.Tests.ps1:159
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2145
at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1198
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:834
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1676
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.ps1:3
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3203
at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3210
at Run-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1679
at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2500
at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:5046
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.116.5\tasks\Invoke-Pester.pester.build.ps1:906
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:590
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:748
at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:522
at <ScriptBlock>, D:\a\_temp\ead94d36-bbf8-4f0f-955e-0830bb9921ae.ps1:11
at <ScriptBlock>, <No file>:1
azure-pipelines / dsccommunity.SqlServerDsc
DSC_SqlRSSetup_Integration.When using configuration DSC_SqlRSSetup_InstallReportingServicesAsUser_Config.Should have set the resource and all the parameters should match
Expected 'SSRS', but got $null.
Raw output
at $resourceCurrentState.InstanceName | Should -Be $ConfigurationData.AllNodes.InstanceName, D:\a\1\s\tests\Integration\DSC_SqlRSSetup.Integration.Tests.ps1:170
at Invoke-Assertion, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8106
at Should<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8044
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_SqlRSSetup.Integration.Tests.ps1:170
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2145
at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1198
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:834
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1676
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.ps1:3
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3203
at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3210
at Run-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1679
at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2500
at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:5046
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.116.5\tasks\Invoke-Pester.pester.build.ps1:906
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:590
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:748
at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:522
at <ScriptBlock>, D:\a\_temp\ead94d36-bbf8-4f0f-955e-0830bb9921ae.ps1:11
at <ScriptBlock>, <No file>:1
azure-pipelines / dsccommunity.SqlServerDsc
DSC_SqlSetup_Integration.When using configuration DSC_SqlSetup_InstallDatabaseEngineDefaultInstanceAsUser_Config.Should be able to call Get-DscConfiguration without throwing
Expected no exception to be thrown, but an exception "Connecting to remote server localhost failed with the following error message : Illegal operation attempted on a registry key that has been marked for deletion. For more information, see the about_Remote_Troubleshooting Help topic." was thrown from D:\a\1\s\tests\Integration\DSC_SqlSetup.Integration.Tests.ps1:468 char:48
+ ... urrentConfiguration = Get-DscConfiguration -Verbose -ErrorAction Stop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
Raw output
at } | Should -Not -Throw, D:\a\1\s\tests\Integration\DSC_SqlSetup.Integration.Tests.ps1:469
at Invoke-Assertion, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8106
at Should<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8048
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_SqlSetup.Integration.Tests.ps1:467
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2145
at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1198
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:834
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1676
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.ps1:3
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3203
at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3210
at Run-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1679
at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2500
at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:5046
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.116.5\tasks\Invoke-Pester.pester.build.ps1:906
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:590
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:748
at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:522
at <ScriptBlock>, D:\a\_temp\6e1b2cff-6114-4734-95ba-f8f56c1b4dd3.ps1:38
at <ScriptBlock>, <No file>:1
azure-pipelines / dsccommunity.SqlServerDsc
DSC_SqlSetup_Integration.When using configuration DSC_SqlSetup_InstallDatabaseEngineDefaultInstanceAsUser_Config.Should have set the resource and all the parameters should match
Expected 'Install', but got $null.
Raw output
at $resourceCurrentState.Action | Should -Be 'Install', D:\a\1\s\tests\Integration\DSC_SqlSetup.Integration.Tests.ps1:478
at Invoke-Assertion, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8106
at Should<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8044
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_SqlSetup.Integration.Tests.ps1:478
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2145
at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1198
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:834
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:892
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2012
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1973
at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2148
at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:939
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1676
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.ps1:3
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3203
at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:3210
at Run-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:1679
at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:2500
at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:5046
at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.116.5\tasks\Invoke-Pester.pester.build.ps1:906
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:590
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:562
at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.10.4\Invoke-Build.ps1:748
at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:522
at <ScriptBlock>, D:\a\_temp\6e1b2cff-6114-4734-95ba-f8f56c1b4dd3.ps1:38
at <ScriptBlock>, <No file>:1