Skip to content

Commit 7eaea94

Browse files
authored
Merge pull request #1408 from microsoft/master
update failing unit backup tests
2 parents 606e5dd + 874950f commit 7eaea94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/Unit/Module/STIG.BackupRevert.tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Describe 'Backup-StigSettings' {
1111
Mock Invoke-DscResource -MockWith { return $get }
1212

1313
It 'Should not throw WindowsServer' {
14-
{Backup-StigSettings -StigName "WindowsServer-2019-MS-2.9.xml"} | Should -not -Throw
14+
{Backup-StigSettings -StigName "WindowsServer-2019-MS-3.2.xml"} | Should -not -Throw
1515
}
1616

1717
It 'Should not throw WindowsClient' {
18-
{Backup-StigSettings -StigName "WindowsClient-10-2.9.xml"} | Should -not -Throw
18+
{Backup-StigSettings -StigName "WindowsClient-10-3.2.xml"} | Should -not -Throw
1919
}
2020

2121
It 'Should not throw Sql Server 2016' {
22-
{Backup-StigSettings -StigName "SqlServer-2016-Instance-2.12.xml"} | Should -not -Throw
22+
{Backup-StigSettings -StigName "SqlServer-2016-Instance-3.2.xml"} | Should -not -Throw
2323
}
2424

2525
It 'Should return string with valid STIGs' {
@@ -41,15 +41,15 @@ Describe 'Restore-StigSettings' {
4141
Mock -CommandName Invoke-DscResource -MockWith {return $get}
4242

4343
It 'Should not throw for Server' {
44-
{Restore-StigSettings -StigName "WindowsServer-2019-MS-2.9.xml" -Confirm:$false} | Should -Not -Throw
44+
{Restore-StigSettings -StigName "WindowsServer-2019-MS-3.2.xml" -Confirm:$false} | Should -Not -Throw
4545
}
4646

4747
It 'Should not throw for Client' {
48-
{Restore-StigSettings -StigName "WindowsClient-10-2.9.xml" -Confirm:$false} | Should -Not -Throw
48+
{Restore-StigSettings -StigName "WindowsClient-10-3.2.xml" -Confirm:$false} | Should -Not -Throw
4949
}
5050

5151
It 'Should not throw for Sql Server 2016' {
52-
{Restore-StigSettings -StigName "SqlServer-2016-Instance-2.12.xml" -Confirm:$false} | Should -Not -Throw
52+
{Restore-StigSettings -StigName "SqlServer-2016-Instance-3.2.xml" -Confirm:$false} | Should -Not -Throw
5353
}
5454

5555
}

0 commit comments

Comments
 (0)