Skip to content

Conversation

andreasjordan
Copy link
Contributor

This is the only test that needs this instance configuration, which is not the default (and probably not recommended) for new instances:

$null = Set-DbaSpConfigure -SqlInstance $TestConfig.instance2, $TestConfig.instance3 -Name IsSqlClrEnabled -Value $true
$null = Set-DbaSpConfigure -SqlInstance $TestConfig.instance2, $TestConfig.instance3 -Name ClrStrictSecurity -Value $false

So instead of running those commands at test lab setup, we run them only before the test and revert to standard settings after the test.

I also refactored the code a bit for better readablility.

@potatoqualitee potatoqualitee merged commit 08625da into development Sep 2, 2025
4 checks passed
@potatoqualitee potatoqualitee deleted the test_copyassembly branch September 2, 2025 16:39
@potatoqualitee
Copy link
Member

awesome ty

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