@@ -25,12 +25,6 @@ BeforeAll {
2525 # The msstore source will be used to install DSCv3 package
2626 Import-Module Microsoft.WinGet.Client
2727
28- $installResult = Install-WingetPackage - Id 9PCX3HX4HZ0Z - Source msstore
29- if ($installResult.Status -ne ' Ok' )
30- {
31- Write-Error " Failed to install DSCv3 package. Status: $ ( $installResult.Status ) . ExtendedErrorCode $ ( $installResult.ExtendedErrorCode ) " - ErrorAction Stop
32- }
33-
3428 function CreatePolicyKeyIfNotExists ()
3529 {
3630 $registryExists = test-path - Path $wingetGroupPolicyRegistryRoot
@@ -487,7 +481,7 @@ Describe 'Invoke-WinGetConfiguration' {
487481
488482 $expectedFile = Join-Path $ (GetConfigTestDataPath) " ShowDetails_DSCv3.txt"
489483 Test-Path $expectedFile | Should - Be $true
490- Get-Content $expectedFile - Raw | Should - Be " Contents!"
484+ Get-Content $expectedFile - Raw | Should - Be " DSCv3 Contents!"
491485 }
492486
493487 It ' Piped' {
@@ -697,7 +691,7 @@ Describe 'Start|Complete-WinGetConfiguration' {
697691
698692 $expectedFile = Join-Path $ (GetConfigTestDataPath) " ShowDetails_DSCv3.txt"
699693 Test-Path $expectedFile | Should - Be $true
700- Get-Content $expectedFile - Raw | Should - Be " Contents!"
694+ Get-Content $expectedFile - Raw | Should - Be " DSCv3 Contents!"
701695
702696 # Verify can't be used after.
703697 { Start-WinGetConfiguration - AcceptConfigurationAgreements - Set $set } | Should - Throw " Operation is not valid due to the current state of the object."
@@ -862,7 +856,7 @@ Describe 'Test-WinGetConfiguration' {
862856 $set | Should -Not - BeNullOrEmpty
863857
864858 $expectedFile = Join-Path $ (GetConfigTestDataPath) " ShowDetails_DSCv3.txt"
865- Set-Content - Path $expectedFile - Value " Contents!" - NoNewline
859+ Set-Content - Path $expectedFile - Value " DSCv3 Contents!" - NoNewline
866860
867861 $result = Test-WinGetConfiguration - AcceptConfigurationAgreements - Set $set
868862 $result | Should -Not - BeNullOrEmpty
0 commit comments