Skip to content

Commit

Permalink
SqlServerDsc: Split test pipeline into different stages (#2027)
Browse files Browse the repository at this point in the history
- SqlServerDsc
  - The pipeline test stages has been split into different stages.
  • Loading branch information
johlju authored May 8, 2024
1 parent 3ef838b commit c9de1bf
Show file tree
Hide file tree
Showing 62 changed files with 347 additions and 131 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
To run the meta task `docs` the SMO assemblies must be loaded into the
session, either by importing SqlServer module or loading SMO stubs.
- QA test improved to speed up quality testing.
- The pipeline test stages has been split into different stages.
- SqlAG
- Converted unit test to Pester 5
- DtcSupportEnabled option in Set-TargetResource and TestTargetResource
Expand Down
54 changes: 27 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,38 +77,38 @@ test_script:
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterTag $env:TEST_CONFIGURATION -PesterPath @(
### Run the integration tests in a specific group order.
## Group 1
'tests/Integration/DSC_SqlSetup.Integration.Tests.ps1'
'tests/Integration/Resources/DSC_SqlSetup.Integration.Tests.ps1'
# Group 2
#'tests/Integration/DSC_SqlAgentAlert.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlLogin.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlEndpoint.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabaseMail.Integration.Tests.ps1'
'tests/Integration/DSC_SqlRSSetup.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabaseDefaultLocation.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabase.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlAlwaysOnService.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlAgentOperator.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlServiceAccount.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlAgentFailsafe.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlTraceFlag.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlAgentAlert.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlLogin.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlEndpoint.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabaseMail.Integration.Tests.ps1'
'tests/Integration/Resources/DSC_SqlRSSetup.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabaseDefaultLocation.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabase.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlAlwaysOnService.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlAgentOperator.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlServiceAccount.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlAgentFailsafe.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlTraceFlag.Integration.Tests.ps1'
## Group 3
#'tests/Integration/DSC_SqlRole.Integration.Tests.ps1'
'tests/Integration/DSC_SqlRS.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabaseUser.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlReplication.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlAudit.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlRole.Integration.Tests.ps1'
'tests/Integration/Resources/DSC_SqlRS.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabaseUser.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlReplication.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlAudit.Integration.Tests.ps1'
## Group 4
#'tests/Integration/DSC_SqlScript.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabasePermission.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlPermission.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlWindowsFirewall.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlScript.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabasePermission.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlPermission.Integration.Tests.ps1'
#'tests/Integration/DResources/SC_SqlWindowsFirewall.Integration.Tests.ps1'
## Group 5
#'tests/Integration/DSC_SqlSecureConnection.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlScriptQuery.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlProtocol.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlSecureConnection.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlScriptQuery.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlProtocol.Integration.Tests.ps1'
## Group 6 (tests makes changes that could make SQL Server to loose connectivity)
#'tests/Integration/DSC_SqlProtocolTcpIp.Integration.Tests.ps1'
#'tests/Integration/DSC_SqlDatabaseObjectPermission.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlProtocolTcpIp.Integration.Tests.ps1'
#'tests/Integration/Resources/DSC_SqlDatabaseObjectPermission.Integration.Tests.ps1'
)
deploy: off
Expand Down
Loading

0 comments on commit c9de1bf

Please sign in to comment.