tests/pester.groups.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# this files describes which tests to run on which environment of the build matrix

$TestsRunGroups = @{
    # run on scenario 2008R2
    "2008R2"            = @(
        'Add-DbaComputerCertificate',
        'Connect-DbaInstance',
        'Get-DbaAgentJobs',
        'Get-DbaAgentJobOutputFile',
        'Get-DbaBackupHistory',
        'Get-DbaComputerSystem',
        'Get-DbaDatabase',
        'Get-DbaDatabaseEncryption',
        'Get-DbaDbStoredProcedure',
        'Get-DbaLogin',
        'Get-DbaOperatingSystem',
        'Get-DbaProcess',
        'Get-DbaRegisteredServerName',
        'Get-DbaSchemaChangeHistory',
        'Get-DbaSpConfigure',
        'Get-DbaSqlLog',
        'Get-DbaSqlModule',
        'Invoke-DbaCycleErrorLog',
        'Invoke-DbaDiagnosticQuery',
        'Mount-DbaDatabase',
        'Remove-DbaDatabase -Confirm:$false',
        'Restore-DbaDatabase',
        'Set-DbaSpConfigure',
        'Test-DbaIdentityUsage'
    )
    # run on scenario 2016
    "2016"              = @(
        'Get-DbaAgDatabase',
        'Get-DbaAgHadr',
        'Get-DbaAgReplica',
        'Get-DbaAvailabilityGroup',
        'Get-DbaDatabaseSnapshot',
        'Get-DbaFile',
        'Get-DbaLastBackup',
        'Get-DbaRegisteredServersStore',
        'Get-DbaTraceFlag',
        'Install-DbaMaintenanceSolution',
        'Measure-DbaBackupThroughput',
        'New-DbaAgentJob',
        'New-DbaAgentJobStep',
        'New-DbaDatabaseSnapshot',
        'New-DbaSsisCatalog',
        'Remove-DbaDatabaseSnapshot',
        'Restore-DbaFromDatabaseSnapshot',
        'Test-DbaDbCompression',
        'Test-DbaLastBackup'
    )
    #run on scenario 2016_service - SQL Server service tests that might disrupt other tests
    "2016_service" = @(
        'Start-DbaSqlService',
        'Stop-DbaSqlService',
        'Restart-DbaSqlService',
        'Get-DbaSqlService',
        'Update-DbaSqlServiceAccount'
    )
    # do not run on appveyor
    "appveyor_disabled" = @(
        'Get-DbaDatabaseState',
        'Dismount-DbaDatabase'
    )
    
    # do not run everywhere
    "disabled"          = @()
}