Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Oct 19, 2024
1 parent 96807b8 commit 60c8b1e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
3 changes: 2 additions & 1 deletion tests/Remove-DbaAvailabilityGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
}
Context "removes the newly created ag" {
It "removes the ag" {
$results = Remove-DbaAvailabilityGroup -SqlInstance $script:instance3 -AvailabilityGroup $agname -Confirm:$false
$results = Remove-DbaAvailabilityGroup -SqlInstance $script:instance3 -AvailabilityGroup $agname -Confirm:$false -WarningVariable warn
$warn | Should -BeNullorEmpty
$results.Status | Should -Be 'Removed'
$results.AvailabilityGroup | Should -Be $agname
}
Expand Down
33 changes: 20 additions & 13 deletions tests/pester.groups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ $TestsRunGroups = @{
)
# do not run on appveyor
"appveyor_disabled" = @(
# tests that work locally against SQL Server 2022 instances without problems but fail on AppVeyor
'Export-DbaUser',
'Get-DbaPermission',
'Invoke-DbaWhoisActive',
'Remove-DbaDatabaseSafely',
# tests that fail locally against SQL Server 2022 instances and fail on AppVeyor
'Set-DbaAgentJobStep',
'New-DbaLogin',
'Watch-DbaDbLogin',
# tests that fail because the command does not work
'Copy-DbaDbCertificate',
'Export-DbaDacPackage',
'Read-DbaAuditFile',
'Read-DbaXEFile',
# takes too long
'Install-DbaSqlWatch',
'Uninstall-DbaSqlWatch',
Expand All @@ -30,30 +44,23 @@ $TestsRunGroups = @{
'Get-DbaCpuRingBuffer',
'Get-DbaLatchStatistic',
# fails on newer version of SMO
'Get-DbaUserPermission',
'Invoke-DbaBalanceDataFiles',
'Invoke-DbaWhoisActive', # Works locally aganint a SQL Server 2022 instance without problems.
#'Get-DbaUserPermission',
#'Invoke-DbaBalanceDataFiles',
'Install-DbaDarlingData',
# previous tests that were failing on older versions too
#'Remove-DbaAvailabilityGroup',
'Read-DbaAuditFile',
'Sync-DbaLoginPermission',
'Read-DbaXEFile',
#'Sync-DbaLoginPermission',
#'Stop-DbaXESession',
#'Test-DbaTempDbConfig',
#'New-DbaDbUser',
#'Stop-DbaXESession',
'New-DbaLogin',
'Watch-DbaDbLogin',
'ConvertTo-DbaXESession',
#'ConvertTo-DbaXESession',
#'Test-DbaInstanceName',
'Test-DbaDeprecatedFeature',
#'Test-DbaDeprecatedFeature',
#'Remove-DbaDatabaseSafely',
#'Get-DbaDbMasterKey',
#'Get-DbaPermission',
#'Test-DbaManagementObject',
'Export-DbaDacPackage',
'New-DbaDbTransfer'
#'New-DbaDbTransfer'
#'Get-DbaDbSynonym',
#'Get-DbaDbVirtualLogFile',
#'Get-DbaFile',
Expand Down

0 comments on commit 60c8b1e

Please sign in to comment.