Skip to content

Commit

Permalink
just a test (do Get-DbaEstimatedCompletionTime)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Oct 20, 2024
1 parent 1e8f1f5 commit 036e817
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Get-DbaEstimatedCompletionTime.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
BeforeAll {
if ($script:bigDatabaseBackup) {
if (-not (Test-Path -Path $script:bigDatabaseBackup) -and $script:bigDatabaseBackupSourceUrl) {
Write-Host 'Starting Download'
Invoke-WebRequest -Uri $script:bigDatabaseBackupSourceUrl -OutFile $script:bigDatabaseBackup
}
$null = Restore-DbaDatabase -SqlInstance $script:instance2 -Path $script:bigDatabaseBackup -DatabaseName checkdbTestDatabase -WithReplace -ReplaceDbNameInFile
$null = New-DbaAgentJob -SqlInstance $script:instance2 -Job checkdbTestJob
$null = New-DbaAgentJobStep -SqlInstance $script:instance2 -Job checkdbTestJob -StepName checkdb -Subsystem TransactSql -Command "DBCC CHECKDB('checkdbTestDatabase')"
$null = Restore-DbaDatabase -SqlInstance $script:instance2 -Path $script:bigDatabaseBackup -DatabaseName checkdbTestDatabase -WithReplace -ReplaceDbNameInFile -EnableException
$null = New-DbaAgentJob -SqlInstance $script:instance2 -Job checkdbTestJob -EnableException
$null = New-DbaAgentJobStep -SqlInstance $script:instance2 -Job checkdbTestJob -StepName checkdb -Subsystem TransactSql -Command "DBCC CHECKDB('checkdbTestDatabase')" -EnableException
$skip = $false
} else {
$skip = $true
Expand Down

0 comments on commit 036e817

Please sign in to comment.