Skip to content

Conversation

@andreasjordan
Copy link
Collaborator

@andreasjordan andreasjordan commented Jan 14, 2026

Changed these tests to be able to target different sql server versions and instance configurations.

Test-DbaConnection.Tests.ps1:
This test used a fixed port 1433, now gets the used port first.

Test-DbaDiskAlignment.Tests.ps1:
This test was the only test that used "$TestConfig.DbaToolsCi_Computer" and was run in the default scenario. The test now uses the computer of $TestConfig.instance1 and runs in that scenario. This way the default scenario only included tests that do not need a running instance.

Test-DbaLinkedServerConnection.Tests.ps1:
This test used a fixed port 1433, now uses the complete instance name as the target. So this test can run against every instance. For AppVeyor the test still has to use the old SQLNCLI11 instead of the MSOLEDBSQL provider as that one is not installed.

@potatoqualitee
Copy link
Member

ohhh nice change!

@potatoqualitee potatoqualitee merged commit 4603c89 into development Jan 15, 2026
14 checks passed
@potatoqualitee potatoqualitee deleted the improve_tests branch January 15, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants