From 45c8643c7ea14295afc20bf6b35450cd3d171d9d Mon Sep 17 00:00:00 2001 From: hinderjd Date: Tue, 23 Jul 2024 10:31:06 -0600 Subject: [PATCH] Update STIG.BackupRevert.tests.ps1 --- Tests/Unit/Module/STIG.BackupRevert.tests.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/Unit/Module/STIG.BackupRevert.tests.ps1 b/Tests/Unit/Module/STIG.BackupRevert.tests.ps1 index a911ba29..16146acb 100644 --- a/Tests/Unit/Module/STIG.BackupRevert.tests.ps1 +++ b/Tests/Unit/Module/STIG.BackupRevert.tests.ps1 @@ -11,15 +11,15 @@ Describe 'Backup-StigSettings' { Mock Invoke-DscResource -MockWith { return $get } It 'Should not throw WindowsServer' { - {Backup-StigSettings -StigName "WindowsServer-2019-MS-2.7.xml"} | Should -not -Throw + {Backup-StigSettings -StigName "WindowsServer-2019-MS-3.1.xml"} | Should -not -Throw } It 'Should not throw WindowsClient' { - {Backup-StigSettings -StigName "WindowsClient-10-2.7.xml"} | Should -not -Throw + {Backup-StigSettings -StigName "WindowsClient-10-3.1.xml"} | Should -not -Throw } It 'Should not throw Sql Server 2016' { - {Backup-StigSettings -StigName "SqlServer-2016-Instance-2.8.xml"} | Should -not -Throw + {Backup-StigSettings -StigName "SqlServer-2016-Instance-3.1.xml"} | Should -not -Throw } It 'Should return string with valid STIGs' { @@ -41,15 +41,15 @@ Describe 'Restore-StigSettings' { Mock -CommandName Invoke-DscResource -MockWith {return $get} It 'Should not throw for Server' { - {Restore-StigSettings -StigName "WindowsServer-2019-MS-2.7.xml" -Confirm:$false} | Should -Not -Throw + {Restore-StigSettings -StigName "WindowsServer-2019-MS-3.1.xml" -Confirm:$false} | Should -Not -Throw } It 'Should not throw for Client' { - {Restore-StigSettings -StigName "WindowsClient-10-2.7.xml" -Confirm:$false} | Should -Not -Throw + {Restore-StigSettings -StigName "WindowsClient-10-3.1.xml" -Confirm:$false} | Should -Not -Throw } It 'Should not throw for Sql Server 2016' { - {Restore-StigSettings -StigName "SqlServer-2016-Instance-2.8.xml" -Confirm:$false} | Should -Not -Throw + {Restore-StigSettings -StigName "SqlServer-2016-Instance-3.1.xml" -Confirm:$false} | Should -Not -Throw } }