Skip to content

Commit

Permalink
it refuses
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 27, 2024
1 parent b5490bd commit 8bbd28d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
33 changes: 16 additions & 17 deletions tests/Dismount-DbaDatabase.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@ param(
)

Describe "Dismount-DbaDatabase" -Tag "UnitTests" {
BeforeAll {
$command = Get-Command Dismount-DbaDatabase
$expected = $TestConfig.CommonParameters
$expected += @(
"SqlInstance",
"SqlCredential",
"Database",
"InputObject",
"UpdateStatistics",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Dismount-DbaDatabase
$expected = $TestConfig.CommonParameters
$expected += @(
"SqlInstance",
"SqlCredential",
"Database",
"InputObject",
"UpdateStatistics",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down Expand Up @@ -103,7 +102,7 @@ Describe "Dismount-DbaDatabase" -Tag "IntegrationTests" {
$database | Should -Not -BeNullOrEmpty
}

It "Should detach database without snapshots" -Skip {
It "Should detach database without snapshots" {
# skip for now in appveyor, but when we do troubleshoot, maybe it just needs a sleep
Start-Sleep 3
$null = Stop-DbaProcess -SqlInstance $TestConfig.instance3 -Database $dbDetached
Expand Down
1 change: 1 addition & 0 deletions tests/pester.groups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $TestsRunGroups = @{
'Remove-DbaAvailabilityGroup',
'Remove-DbaDatabaseSafely',
'Sync-DbaLoginPermission',
'Dismount-DbaDatabase',
# tests that fail locally against SQL Server 2022 instances and fail on AppVeyor
'Set-DbaAgentJobStep',
'New-DbaLogin',
Expand Down

0 comments on commit 8bbd28d

Please sign in to comment.