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

Get-/Set-DbaTcpPort - Rewriting the commands and using Get-/Set-DbaNetworkConfiguration #7390

Merged
merged 5 commits into from
Jun 18, 2021

Conversation

andreasjordan
Copy link
Contributor

Just a draft with first ideas.
There have been issues with the commands, so this is also a bugfix.

Type of Change

  • Bug fix (non-breaking change, fixes # )
  • 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/sqlcollaborative/appveyor-lab ?
  • Nunit test is included
  • Documentation
  • Build system

Purpose

Approach

Commands to test

Screenshots

Learning

@andreasjordan andreasjordan marked this pull request as ready for review June 16, 2021 07:56
@potatoqualitee
Copy link
Member

Tests pass but Set has no integration tests :/ Would you be so kind as to write at least one that ensure the command works as expected?

@andreasjordan
Copy link
Contributor Author

How are the instances in AppVayor configured? Can I change the port without affecting other tests?
If they are on static port, I could just change that and then change it back.
If they are on dynamic port, I could change to static and then back to dynamic with Set-DbaNetworkConfiguration.

@andreasjordan
Copy link
Contributor Author

I can just change the configuration without restarting the service or also restarting the service. What should the test do?

@niphlod
Copy link
Contributor

niphlod commented Jun 18, 2021

the service_restarts env should be the best option here, as it runs pretty destructive tests already.
instances are configured using these scripts \tests\appveyor.SQL2017.ps1,\tests\appveyor.SQL2016.ps1

@potatoqualitee
Copy link
Member

Fantastic! Thank you.

@potatoqualitee potatoqualitee merged commit fc326b3 into development Jun 18, 2021
@potatoqualitee potatoqualitee deleted the GetSetDbaTcpPort_Rewrite branch June 18, 2021 17:04
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.

None yet

3 participants