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-DbaAgentSchedule: Fix issues with testing for correct dates and times #9389

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes New-DbaAgentSchedule flags an error with a start time before 10000? #9388 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects 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

See issue for details.

We now use the correct types for the SMO properties.

Maybe we should also add two new parameters StartDateTime and EndDateTime with [datetime] datatype as an alternative for the four string parameters. I can do this if other contributors agree.

@andreasjordan
Copy link
Contributor Author

I don't see why the test fails. The test uses Schedules, but I don't see a relation to the code change. Can someone help?

@potatoqualitee
Copy link
Member

i wondered if these were breaking changes. ill take a closer look this weekend 👍🏼

@andreasjordan
Copy link
Contributor Author

Just found a copy-paste-bug I introduced. Will fix in a minute...

@andreasjordan
Copy link
Contributor Author

Now all tests pass.

@potatoqualitee
Copy link
Member

excellent, thanks andreas!

@potatoqualitee potatoqualitee merged commit 7b2e990 into development Jun 14, 2024
13 checks passed
@potatoqualitee potatoqualitee deleted the NewDbaAgentSchedule_fix_regex branch June 14, 2024 18:11
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-DbaAgentSchedule flags an error with a start time before 10000?
2 participants