Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
34bae6f
Add SQL Server 2025 to integration tests
johlju Jan 24, 2026
8876ce2
Add TLS protocol conversion and testing functions for SQL Server 2025
johlju Jan 24, 2026
e2d4af1
Add SQL Server 2025 integration testing configuration
johlju Jan 24, 2026
4eabb79
Fix syntax error in SQL Server 2025 test configuration in azure-pipel…
johlju Jan 24, 2026
c25851c
Add examples to ConvertTo-TlsProtocolRegistryKeyName and Test-TlsProt…
johlju Jan 24, 2026
e0e4b9e
Update integration tests to include SQL Server 2025 in module version…
johlju Jan 24, 2026
142b66a
Add functions to retrieve TLS protocol registry paths and targets
johlju Jan 24, 2026
74dc89b
Add integration tests for SqlServer module version 22.4.5.1
johlju Jan 24, 2026
095eb3b
Add output type annotations and examples to TLS protocol functions
johlju Jan 24, 2026
b77e9bb
Add output type annotation to Get-TlsProtocolTargetRegistryName function
johlju Jan 24, 2026
a9a3edb
Remove SQL Server 2025 integration test for named instance installation
johlju Jan 24, 2026
cf042de
Update SQL Server 2025 media download links and configuration for Ent…
johlju Jan 25, 2026
e1c5d5b
Implement workaround for SQL Server 2025 distributor installation usi…
johlju Jan 25, 2026
ba660a0
Refactor Install-RemoteDistributor to use Connect-SqlDscDatabaseEngin…
johlju Jan 25, 2026
8c917c5
Add InstanceName parameter to Install-RemoteDistributor and update usage
johlju Jan 25, 2026
8cce8bc
Add support for TrustServerCertificate in Connect-Sql and update loca…
johlju Jan 26, 2026
8bf001c
Add TrustServerCertificate property to Connect-SQL tests
johlju Jan 26, 2026
0ba017d
Add TrustServerCertificate property to Connect-SQL tests
johlju Jan 26, 2026
c6148bb
Add TrustServerCertificate property to Connect-SQL tests
johlju Jan 26, 2026
b50c5ca
Refactor Connect-Sql to handle TrustServerCertificate logic and enhan…
johlju Jan 27, 2026
dae2cf8
Merge branch 'main' into f/sql-2025-test
johlju Jan 27, 2026
951df13
Remove default encryption handling for SQL Server 2025 in Connect-Sql…
johlju Jan 27, 2026
cb4e159
Remove SQL Server 2025 tag from integration test description
johlju Jan 27, 2026
e7883e2
Remove obsolete TLS protocol handling functions and related tests
johlju Jan 27, 2026
9f8fc18
Skip TLS 1.2 enabled test for SQL Server 2025 integration due to inst…
johlju Jan 27, 2026
3334285
Remove obsolete message for ignoring server certificate trust in SqlS…
johlju Jan 27, 2026
a34ab25
Remove TrustServerCertificate property from Connect-SQL tests
johlju Jan 27, 2026
d139158
Skip TLS 1.2 enabled test for SQL Server 2025 integration due to inst…
johlju Jan 27, 2026
aa49742
Enhance CompatibilityLevel handling for SQL Server 2025 by converting…
johlju Jan 27, 2026
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- SqlServerDsc.Common
- Moved functions into individual files and use ModuleBuilder to assemble.

- SqlServerDsc
- Refactor integration tests for _SQL Server Reporting Services_ and _Power BI_
_Report Server_ ([issue #2431](https://github.com/dsccommunity/SqlServerDsc/issues/2431)).
- `Connect-Sql` create connection and server objects as per documentation.
- `Invoke-SqlDscQuery` remove disconnect as there is not an explicit connect.
- Add SQL Server 2025 to integration tests ([issue #2427](https://github.com/dsccommunity/SqlServerDsc/issues/2427)).
Comment thread
johlju marked this conversation as resolved.

### Fixed

Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ To make sure a integration tests is run in the correct order the integration
tests are grouped in the file `azure-pipelines.yml` in the integration tests
jobs.

There are three, separate, integration tests jobs that each, independently, test
SQL Server 2016, SQL Server 2017 and SQL Server 2019.
There are multiple, separate integration test jobs that independently test SQL Server 2017, SQL Server 2019, SQL Server 2022 and SQL Server 2025.

### Testing of examples files

Expand Down
15 changes: 15 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ stages:
SQL2022_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2022'
SQL2025_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2025'
pool:
vmImage: $(JOB_VMIMAGE)
timeoutInMinutes: '0'
Expand Down Expand Up @@ -452,6 +455,9 @@ stages:
SQL2022_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2022'
SQL2025_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2025'
pool:
vmImage: $(JOB_VMIMAGE)
timeoutInMinutes: '0'
Expand Down Expand Up @@ -846,6 +852,9 @@ stages:
SQL2022_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2022'
SQL2025_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2025'
pool:
vmImage: $(JOB_VMIMAGE)
timeoutInMinutes: '0'
Expand Down Expand Up @@ -938,6 +947,9 @@ stages:
SQL2022_WIN2022:
JOB_VMIMAGE: 'windows-2022'
TEST_CONFIGURATION: 'Integration_SQL2022'
SQL2025_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2025'
pool:
vmImage: $(JOB_VMIMAGE)
timeoutInMinutes: '0'
Expand Down Expand Up @@ -1254,6 +1266,9 @@ stages:
SQL2022_WIN2022:
JOB_VMIMAGE: 'windows-2022'
TEST_CONFIGURATION: 'Integration_SQL2022'
SQL2025_WIN2025:
JOB_VMIMAGE: 'windows-2025'
TEST_CONFIGURATION: 'Integration_SQL2025'
pool:
vmImage: $(JOB_VMIMAGE)
timeoutInMinutes: 0
Expand Down
18 changes: 16 additions & 2 deletions source/Classes/020.SqlDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class SqlDatabase : SqlResourceBase
$Collation

[DscProperty()]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160')]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160', 'Version170')]
[System.String]
$CompatibilityLevel

Expand Down Expand Up @@ -745,7 +745,21 @@ class SqlDatabase : SqlResourceBase
# Only set CompatibilityLevel if it's a valid non-zero value
if ($databaseObject.CompatibilityLevel -gt 0)
{
$currentState.CompatibilityLevel = $databaseObject.CompatibilityLevel.ToString()
$compatValue = $databaseObject.CompatibilityLevel.ToString()

<#
SMO may return numeric values (e.g. 170 for SQL Server 2025).
Convert purely-numeric values to the 'Version' prefixed form
so they match the ValidateSet values (Version80..Version170).
#>
if ($compatValue -match '^[0-9]+$')
{
$currentState.CompatibilityLevel = 'Version{0}' -f $compatValue
}
else
{
$currentState.CompatibilityLevel = $compatValue
}
}

$currentState.RecoveryModel = $databaseObject.RecoveryModel.ToString()
Expand Down
48 changes: 40 additions & 8 deletions source/DSCResources/DSC_SqlReplication/DSC_SqlReplication.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function Set-TargetResource
Install-RemoteDistributor `
-ReplicationServer $localReplicationServer `
-RemoteDistributor $RemoteDistributor `
-AdminLinkCredentials $AdminLinkCredentials
-AdminLinkCredentials $AdminLinkCredentials `
-InstanceName $InstanceName
}
}
else #'Absent'
Expand Down Expand Up @@ -437,7 +438,7 @@ function New-ServerConnection
$SqlServerName
)

if ($SqlMajorVersion -eq 16)
if ($SqlMajorVersion -in @(16, 17))
{
<#
For SQL Server 2022 the object must be created with New-Object and
Expand Down Expand Up @@ -598,6 +599,9 @@ function New-DistributionPublisher
.PARAMETER AdminLinkCredentials
AdminLink password to be used when setting up publisher distributor
relationship.

.PARAMETER InstanceName
SQL Server instance name where replication distribution will be configured.
#>
function Install-RemoteDistributor
{
Expand All @@ -614,22 +618,50 @@ function Install-RemoteDistributor

[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
$AdminLinkCredentials
$AdminLinkCredentials,

[Parameter(Mandatory = $true)]
[System.String]
$InstanceName
)

Write-Verbose -Message (
$script:localizedData.InstallRemoteDistributor -f $RemoteDistributor
)

try
$serverObject = Connect-SqlDscDatabaseEngine -InstanceName $InstanceName -ErrorAction 'Stop'

$sqlMajorVersion = $serverObject.VersionMajor

if ($sqlMajorVersion -eq 17)
{
$ReplicationServer.InstallDistributor($RemoteDistributor, $AdminLinkCredentials.Password)
$clearTextPassword = $AdminLinkCredentials.GetNetworkCredential().Password

<#
Need to execute stored procedure sp_adddistributor for SQL Server 2025.
Workaround for issue: https://github.com/dsccommunity/SqlServerDsc/pull/2435#issuecomment-3796616952

TODO: Should support encrypted connection in the future, then we could
probably go back to using InstallDistributor(), another option is
to move to stored procedures for all of the Replication logic.
#>
$query = "EXECUTE sys.sp_adddistributor @distributor = N'$RemoteDistributor', @password = N'$clearTextPassword', @encrypt_distributor_connection = 'optional', @trust_distributor_certificate = 'yes';"
Comment thread
johlju marked this conversation as resolved.

# TODO: This need to pass a credential in the future, now connects using the one resource is run as.
Invoke-SqlDscQuery -ServerObject $serverObject -DatabaseName 'master' -Query $query -RedactText $clearTextPassword -Force -ErrorAction 'Stop'
}
catch
else
{
$errorMessage = $script:localizedData.FailedInFunction -f 'Install-RemoteDistributor'
try
{
$ReplicationServer.InstallDistributor($RemoteDistributor, $AdminLinkCredentials.Password)
}
catch
{
$errorMessage = $script:localizedData.FailedInFunction -f 'Install-RemoteDistributor'

New-InvalidOperationException -Message $errorMessage -ErrorRecord $_
New-InvalidOperationException -Message $errorMessage -ErrorRecord $_
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions source/DSCResources/DSC_SqlSetup/DSC_SqlSetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ function Set-TargetResource
# If SQL shared components already installed, clear InstallShared*Dir variables
switch ($SqlVersion)
{
{ $_ -in ('10', '11', '12', '13', '14', '15', '16') }
{ $_ -in ('10', '11', '12', '13', '14', '15', '16', '17') }
{
if ((Get-Variable -Name 'InstallSharedDir' -ErrorAction SilentlyContinue) -and (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FEE2E540D20152D4597229B6CFBC0A69' -ErrorAction SilentlyContinue))
{
Expand Down Expand Up @@ -3387,7 +3387,7 @@ function Get-SqlSharedPaths

switch ($SqlServerMajorVersion)
{
{ $_ -in ('10', '11', '12', '13', '14', '15', '16') }
{ $_ -in ('10', '11', '12', '13', '14', '15', '16', '17') }
{
$registryKeySharedDir = 'FEE2E540D20152D4597229B6CFBC0A69'
$registryKeySharedWOWDir = 'A79497A344129F64CA7D69C56F5DD8B4'
Expand Down
3 changes: 2 additions & 1 deletion source/Public/New-SqlDscDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function New-SqlDscDatabase
$CatalogCollation,

[Parameter(ParameterSetName = 'Database')]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160')]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160', 'Version170')]
[System.String]
$CompatibilityLevel,

Expand Down Expand Up @@ -738,6 +738,7 @@ function New-SqlDscDatabase
14 = @('Version100', 'Version110', 'Version120', 'Version130', 'Version140')
15 = @('Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150')
16 = @('Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160')
17 = @('Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160', 'Version170')
}

if ($CompatibilityLevel -notin $supportedCompatibilityLevels.$($ServerObject.VersionMajor))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Add-SqlDscFileGroup' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Add-SqlDscFileGroup' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Add-SqlDscTraceFlag' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Add-SqlDscTraceFlag' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AfterAll {
$null = Remove-Item -Path 'Env:\SqlServerDscCI' -ErrorAction 'Stop'
}

Describe 'Assert-SqlDscAgentOperator' -Tag 'Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022' {
Describe 'Assert-SqlDscAgentOperator' -Tag 'Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025' {
BeforeAll {
$mockSqlAdministratorUserName = 'SqlAdmin' # Using computer name as NetBIOS name throw exception.
$mockSqlAdministratorPassword = ConvertTo-SecureString -String 'P@ssw0rd1' -AsPlainText -Force
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Assert-SqlDscLogin' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Assert-SqlDscLogin' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:instanceName = 'DSCSQLTEST'
$script:computerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Backup-SqlDscDatabase' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Backup-SqlDscDatabase' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BeforeAll {
}

# cSpell: ignore DSCSQLTEST, PrepareImage, CompleteImage
Describe 'Complete-SqlDscImage' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Complete-SqlDscImage' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
Write-Verbose -Message ('Running integration test as user ''{0}''.' -f $env:UserName) -Verbose

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BeforeAll {
}

# cSpell: ignore DSCSQLTEST
Describe 'Connect-SqlDscDatabaseEngine' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Connect-SqlDscDatabaseEngine' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
Write-Verbose -Message ('Running integration test as user ''{0}''.' -f $env:UserName) -Verbose

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'ConvertFrom-SqlDscDatabasePermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertFrom-SqlDscDatabasePermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
Context 'When converting DatabasePermission objects' {
Context 'When converting a single permission Grant state' {
It 'Should return a DatabasePermissionSet with correct permissions set' {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ BeforeAll {
# in a realistic environment. Since this is a conversion utility that doesn't directly interact
# with SQL Server, it tests the command's functionality with real ServerPermission objects
# rather than requiring SQL Server connectivity.
Describe 'ConvertFrom-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertFrom-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
Context 'When converting ServerPermission objects in integration environment' {
It 'Should convert single permission correctly' {
# Use the module scope to create ServerPermission object properly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BeforeAll {
Import-SqlDscPreferredModule
}

Describe 'ConvertTo-SqlDscDataFile' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertTo-SqlDscDataFile' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'ConvertTo-SqlDscDatabasePermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertTo-SqlDscDatabasePermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'ConvertTo-SqlDscEditionName' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertTo-SqlDscEditionName' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
Write-Verbose -Message ('Running integration test as user ''{0}''.' -f $env:UserName) -Verbose

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BeforeAll {
Import-SqlDscPreferredModule
}

Describe 'ConvertTo-SqlDscFileGroup' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertTo-SqlDscFileGroup' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'ConvertTo-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'ConvertTo-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Deny-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Deny-SqlDscServerPermission' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AfterAll {
Remove-Item -Path 'Env:\SqlServerDscCI' -ErrorAction 'SilentlyContinue'
}

Describe 'Disable-SqlDscAgentOperator' -Tag 'Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022' {
Describe 'Disable-SqlDscAgentOperator' -Tag 'Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025' {
BeforeAll {
$mockSqlAdministratorUserName = 'SqlAdmin' # Using computer name as NetBIOS name throw exception.
$mockSqlAdministratorPassword = ConvertTo-SecureString -String 'P@ssw0rd1' -AsPlainText -Force
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Disable-SqlDscAudit' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Disable-SqlDscAudit' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Disable-SqlDscDatabaseSnapshotIsolation' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Disable-SqlDscDatabaseSnapshotIsolation' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'
$script:mockComputerName = Get-ComputerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BeforeAll {
Import-Module -Name $script:moduleName -ErrorAction 'Stop'
}

Describe 'Disable-SqlDscLogin' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
Describe 'Disable-SqlDscLogin' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_SQL2025') {
BeforeAll {
$script:mockInstanceName = 'DSCSQLTEST'

Expand Down
Loading
Loading