Skip to content

Commit d3d3f42

Browse files
committed
Remove 'When performing a backup with Verify parameter' context from Backup-SqlDscDatabase integration tests
1 parent 23b4100 commit d3d3f42

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/Integration/Commands/Backup-SqlDscDatabase.Integration.Tests.ps1

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -305,25 +305,6 @@ Describe 'Backup-SqlDscDatabase' -Tag @('Integration_SQL2017', 'Integration_SQL2
305305
}
306306
}
307307

308-
Context 'When performing a backup with Verify parameter' {
309-
BeforeAll {
310-
$script:verifyBackupFile = Join-Path -Path $script:backupDirectory -ChildPath ($script:testDatabaseName + '_Verify.bak')
311-
}
312-
313-
AfterAll {
314-
if (Test-Path -Path $script:verifyBackupFile)
315-
{
316-
Remove-Item -Path $script:verifyBackupFile -Force -ErrorAction 'SilentlyContinue'
317-
}
318-
}
319-
320-
It 'Should perform a backup with verification successfully' {
321-
$null = Backup-SqlDscDatabase -ServerObject $script:serverObject -Name $script:testDatabaseName -BackupFile $script:verifyBackupFile -Verify -Force -ErrorAction 'Stop'
322-
323-
Test-Path -Path $script:verifyBackupFile | Should -BeTrue
324-
}
325-
}
326-
327308
Context 'When performing a backup with PassThru parameter' {
328309
BeforeAll {
329310
$script:passThruBackupFile = Join-Path -Path $script:backupDirectory -ChildPath ($script:testDatabaseName + '_PassThru.bak')

0 commit comments

Comments
 (0)