Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-DbaConnectionStringBuilder, param reorganization #9613

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

niphlod
Copy link
Contributor

@niphlod niphlod commented Mar 4, 2025

Type of Change

  • Bug fix (non-breaking change, fixes New-DbaConnectionStringBuilder does not parse all connection string parameters #9606 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (Invoke-ManualPester)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

Purpose

Make New-DbaConnectionStringBuilder a little more precise. The idea should be that whatever is in the initial connectionstring is preserved UNLESS specifically passed down.

Approach

Using Test-Bound where appropriate and ShouldSerialize, preserving all the behaviour but fixing overrides

Commands to test

Added a ton of tests, converted pester3 syntax to pester4 (waiting for aider-related to convert to pester5 automagically) coverage is now 100%, shouldn't ever regress ^_^

Screenshots

image

@potatoqualitee
Copy link
Member

tear it UP! 🔥

@potatoqualitee potatoqualitee merged commit b83e8a5 into dataplat:development Mar 4, 2025
3 checks passed
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.

New-DbaConnectionStringBuilder does not parse all connection string parameters
2 participants