-
-
Notifications
You must be signed in to change notification settings - Fork 853
Refactor test scenarios #10070
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
base: development
Are you sure you want to change the base?
Refactor test scenarios #10070
Conversation
|
Will wait for niph's approval 👍🏼 |
|
i do not know how to trigger a whole run 😅 let me see what i can do. I think ill make a branch off of this and then push bc it runs my entire branches https://ci.appveyor.com/project/dataplat/dbatools/builds/53297302 |
|
Looks like one command keeps failing Set Parameter something, unsure if related. |
|
Path : Set-DbaStartupParameter/Validate command functionality/Ensure the startup params are not duplicated when more than one server is modified in the same invocation |
|
Set-DbaStartupParameter uses instance1 and instance2 and was part of the scenario service_restarts. As I removed the scenario, the test is now autodetected into scenario default which should work. But the test needs refactoring anyway and is a good example of instanceMulti, so I will create a new scenario for it and see if it passes. |
|
Now I see the problem. The test uses instances 1 and 2, but the scenario service_restarts only spins up instances 2 and 3. So the test was never working correctly, but we have not noticed because we do not look at the details of the test runs. |
|
Now the test works as expected. Next steps:
Later we could try to use another base image that has newer SQL Server versions. Or build our own image with two instances of version 2022 or 2025. Then we could also enhance the AG tests. |
|
But I will pause this now and wait for @niphlod to give feedback. |
Let me test some ideas from #10069
Looks good to me. @niphlod - what do you think?
How can we trigger an complete test run on this branch?