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

Test-DbaConnection - support usage of FQDN when testing TcpPort #8139

Merged
merged 1 commit into from Feb 4, 2022

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes Error in Test-DBAConnection when using FQDN for server #8116 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (effects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • 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

As Get-DbaTcpPort opens a new connection anyway, we should call the command with $instance instead of $server, because $instance is the original input and can contain a FQDN.

@potatoqualitee
Copy link
Member

Reasonable change, thank you 💯

@potatoqualitee potatoqualitee merged commit 5fa8351 into development Feb 4, 2022
@potatoqualitee potatoqualitee deleted the TestDBAConnection_fix_TCP_test branch February 4, 2022 09:36
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.

Error in Test-DBAConnection when using FQDN for server
2 participants