Skip to content

Commit

Permalink
Enabling more tests on AppVeyor (#9523)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan authored Oct 20, 2024
1 parent 0083d57 commit 036abd7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 36 deletions.
5 changes: 3 additions & 2 deletions tests/Remove-DbaAvailabilityGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Describe "$commandname Unit Tests" -Tag 'UnitTests' {
Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
BeforeAll {
$agname = "dbatoolsci_removewholegroup"
$null = New-DbaAvailabilityGroup -Primary $script:instance3 -Name $agname -ClusterType None -FailoverMode Manual -Confirm:$false
$null = New-DbaAvailabilityGroup -Primary $script:instance3 -Name $agname -ClusterType None -FailoverMode Manual -Certificate dbatoolsci_AGCert -Confirm:$false
}
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
53 changes: 19 additions & 34 deletions tests/pester.groups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,32 @@ $TestsRunGroups = @{
)
# do not run on appveyor
"appveyor_disabled" = @(
# takes too long
'Install-DbaSqlWatch',
'Uninstall-DbaSqlWatch',
'Get-DbaExecutionPlan',
# Non-useful info from newly started sql servers
'Get-DbaCpuRingBuffer',
'Get-DbaLatchStatistic',
# fails on newer version of SMO
# tests that work locally against SQL Server 2022 instances without problems but fail on AppVeyor
'ConvertTo-DbaXESession',
'Export-DbaUser',
'Get-DbaPermission',
'Get-DbaUserPermission',
'Invoke-DbaBalanceDataFiles',
'Invoke-DbaWhoisActive', # Works locally aganint a SQL Server 2022 instance without problems.
'Install-DbaDarlingData',
# previous tests that were failing on older versions too
'Invoke-DbaWhoisActive',
'Remove-DbaAvailabilityGroup',
'Read-DbaAuditFile',
'Remove-DbaDatabaseSafely',
'Sync-DbaLoginPermission',
'Read-DbaXEFile',
'Stop-DbaXESession',
'Test-DbaTempDbConfig',
#'New-DbaDbUser',
'Stop-DbaXESession',
# tests that fail locally against SQL Server 2022 instances and fail on AppVeyor
'Set-DbaAgentJobStep',
'New-DbaLogin',
'Watch-DbaDbLogin',
'ConvertTo-DbaXESession',
'Test-DbaInstanceName',
'Test-DbaDeprecatedFeature',
'Remove-DbaDatabaseSafely',
'Get-DbaDbMasterKey',
'Get-DbaPermission',
'Test-DbaManagementObject',
# tests that fail because the command does not work
'Copy-DbaDbCertificate',
'Export-DbaDacPackage',
'New-DbaDbTransfer',
'Get-DbaDbSynonym',
'Get-DbaDbVirtualLogFile',
'Get-DbaFile',
'Get-DbaHelpIndex',
'Get-DbaExternalProcess',
# just fails too often
'Test-DbaMaxDop',
'Test-DbaOptimizeForAdHoc',
'New-DbaDbSnapshot'
'Read-DbaAuditFile',
'Read-DbaXEFile',
# takes too long
'Install-DbaSqlWatch',
'Uninstall-DbaSqlWatch',
'Get-DbaExecutionPlan',
# Non-useful info from newly started sql servers
'Get-DbaCpuRingBuffer',
'Get-DbaLatchStatistic'
)
# do not run everywhere
"disabled" = @()
Expand Down

0 comments on commit 036abd7

Please sign in to comment.