Skip to content

Apply Convert-TimeFormat to ExpiryDate fields #86

Description

@brian-reeder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestintegration testImprovements or additions to integration testsunit testImprovements or additions to unit tests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions