Skip to content

Commit 036abd7

Browse files
Enabling more tests on AppVeyor (#9523)
1 parent 0083d57 commit 036abd7

File tree

2 files changed

+22
-36
lines changed

2 files changed

+22
-36
lines changed

tests/Remove-DbaAvailabilityGroup.Tests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ Describe "$commandname Unit Tests" -Tag 'UnitTests' {
1616
Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
1717
BeforeAll {
1818
$agname = "dbatoolsci_removewholegroup"
19-
$null = New-DbaAvailabilityGroup -Primary $script:instance3 -Name $agname -ClusterType None -FailoverMode Manual -Confirm:$false
19+
$null = New-DbaAvailabilityGroup -Primary $script:instance3 -Name $agname -ClusterType None -FailoverMode Manual -Certificate dbatoolsci_AGCert -Confirm:$false
2020
}
2121
Context "removes the newly created ag" {
2222
It "removes the ag" {
23-
$results = Remove-DbaAvailabilityGroup -SqlInstance $script:instance3 -AvailabilityGroup $agname -Confirm:$false
23+
$results = Remove-DbaAvailabilityGroup -SqlInstance $script:instance3 -AvailabilityGroup $agname -Confirm:$false -WarningVariable warn
24+
$warn | Should -BeNullorEmpty
2425
$results.Status | Should -Be 'Removed'
2526
$results.AvailabilityGroup | Should -Be $agname
2627
}

tests/pester.groups.ps1

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,47 +22,32 @@ $TestsRunGroups = @{
2222
)
2323
# do not run on appveyor
2424
"appveyor_disabled" = @(
25-
# takes too long
26-
'Install-DbaSqlWatch',
27-
'Uninstall-DbaSqlWatch',
28-
'Get-DbaExecutionPlan',
29-
# Non-useful info from newly started sql servers
30-
'Get-DbaCpuRingBuffer',
31-
'Get-DbaLatchStatistic',
32-
# fails on newer version of SMO
25+
# tests that work locally against SQL Server 2022 instances without problems but fail on AppVeyor
26+
'ConvertTo-DbaXESession',
27+
'Export-DbaUser',
28+
'Get-DbaPermission',
3329
'Get-DbaUserPermission',
34-
'Invoke-DbaBalanceDataFiles',
35-
'Invoke-DbaWhoisActive', # Works locally aganint a SQL Server 2022 instance without problems.
3630
'Install-DbaDarlingData',
37-
# previous tests that were failing on older versions too
31+
'Invoke-DbaWhoisActive',
3832
'Remove-DbaAvailabilityGroup',
39-
'Read-DbaAuditFile',
33+
'Remove-DbaDatabaseSafely',
4034
'Sync-DbaLoginPermission',
41-
'Read-DbaXEFile',
42-
'Stop-DbaXESession',
43-
'Test-DbaTempDbConfig',
44-
#'New-DbaDbUser',
45-
'Stop-DbaXESession',
35+
# tests that fail locally against SQL Server 2022 instances and fail on AppVeyor
36+
'Set-DbaAgentJobStep',
4637
'New-DbaLogin',
4738
'Watch-DbaDbLogin',
48-
'ConvertTo-DbaXESession',
49-
'Test-DbaInstanceName',
50-
'Test-DbaDeprecatedFeature',
51-
'Remove-DbaDatabaseSafely',
52-
'Get-DbaDbMasterKey',
53-
'Get-DbaPermission',
54-
'Test-DbaManagementObject',
39+
# tests that fail because the command does not work
40+
'Copy-DbaDbCertificate',
5541
'Export-DbaDacPackage',
56-
'New-DbaDbTransfer',
57-
'Get-DbaDbSynonym',
58-
'Get-DbaDbVirtualLogFile',
59-
'Get-DbaFile',
60-
'Get-DbaHelpIndex',
61-
'Get-DbaExternalProcess',
62-
# just fails too often
63-
'Test-DbaMaxDop',
64-
'Test-DbaOptimizeForAdHoc',
65-
'New-DbaDbSnapshot'
42+
'Read-DbaAuditFile',
43+
'Read-DbaXEFile',
44+
# takes too long
45+
'Install-DbaSqlWatch',
46+
'Uninstall-DbaSqlWatch',
47+
'Get-DbaExecutionPlan',
48+
# Non-useful info from newly started sql servers
49+
'Get-DbaCpuRingBuffer',
50+
'Get-DbaLatchStatistic'
6651
)
6752
# do not run everywhere
6853
"disabled" = @()

0 commit comments

Comments
 (0)