Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling more tests on AppVeyor #9523

Merged
merged 6 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading