Skip to content

Commit 0ea5fec

Browse files
Connect-DbaInstance - Give the cloned server ownership of its database connection (#10584)
1 parent f94f309 commit 0ea5fec

4 files changed

Lines changed: 574 additions & 30 deletions

File tree

private/testing/Get-TestConfig.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ function Get-TestConfig {
2525
ClusterStorage = $null
2626
# ClusterWitness needs a file share witness.
2727
ClusterWitness = $null
28+
# The Azure SQL Database that the tests of the Azure code paths need. Azure SQL Database is the
29+
# only engine that refuses to switch the database of an existing connection - it answers a USE
30+
# with error 40508 - so a real one is the only place that branch can be covered. No CI
31+
# environment has one, so these stay empty there and those tests skip themselves. A local
32+
# configuration that has one sets all three: the server, a database on it, and a credential of a
33+
# SQL Server login that can reach that database.
34+
AzureSqlDbServer = $null
35+
AzureSqlDbName = $null
36+
AzureSqlDbCred = $null
2837
}
2938

3039
if (Test-Path $LocalConfigPath) {

0 commit comments

Comments
 (0)