dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.39k stars 787 forks source link

New-DbaAgentSchedule: Fix issues with testing for correct dates and times #9389

Closed andreasjordan closed 2 weeks ago

andreasjordan commented 3 weeks ago

Type of Change

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 commented 3 weeks ago

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 commented 2 weeks ago

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

andreasjordan commented 2 weeks ago

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

andreasjordan commented 2 weeks ago

Now all tests pass.

potatoqualitee commented 2 weeks ago

excellent, thanks andreas!