Is your feature request related to a problem? Please describe.
ExpiryDate format is required MM/DD/YYYY and is unenforced. If a user supplies an invalid datetime string, the API will throw an error and the task will fail.
Describe the solution you'd like
Apply the utils/Convert-TimeFormat function on the field. This allows users to supply relative time (02/28) or epoch time and still generate a valid API call.
Add test cases to Unit/Integration tests.
The affected functions are:
- Add-SecuronixAttributeToWhitelist
- Add-SecuronixEntityToWhitelist
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
ExpiryDate format is required MM/DD/YYYY and is unenforced. If a user supplies an invalid datetime string, the API will throw an error and the task will fail.
Describe the solution you'd like
Apply the utils/Convert-TimeFormat function on the field. This allows users to supply relative time (02/28) or epoch time and still generate a valid API call.
Add test cases to Unit/Integration tests.
The affected functions are:
Describe alternatives you've considered
None.
Additional context
None.