Skip to content

Commit d11ec2d

Browse files
committed
update unit test for new 2019 Stig
1 parent eec188d commit d11ec2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ 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.2.xml"} | Should -not -Throw
14+
{Backup-StigSettings -StigName "WindowsServer-2019-MS-2.4.xml"} | Should -not -Throw
1515
}
1616

1717
It 'Should not throw WindowsClient' {
@@ -39,15 +39,15 @@ Describe 'Restore-StigSettings' {
3939
}
4040

4141
Mock -CommandName Invoke-DscResource -MockWith {return $get}
42-
42+
4343
It 'Should not throw for Server' {
44-
{Restore-StigSettings -StigName "WindowsServer-2019-MS-2.2.xml" -Confirm:$false} | Should -Not -Throw
44+
{Restore-StigSettings -StigName "WindowsServer-2019-MS-2.4.xml" -Confirm:$false} | Should -Not -Throw
4545
}
4646

4747
It 'Should not throw for Client' {
4848
{Restore-StigSettings -StigName "WindowsClient-10-2.2.xml" -Confirm:$false} | Should -Not -Throw
4949
}
50-
50+
5151
It 'Should not throw for Sql Server 2016' {
5252
{Restore-StigSettings -StigName "SqlServer-2016-Instance-2.3.xml" -Confirm:$false} | Should -Not -Throw
5353
}

0 commit comments

Comments
 (0)