Skip to content

Get-SecuronixIncidentAttachments Pester test for list of attachments. #62

Description

@brian-reeder

Is your feature request related to a problem? Please describe.
There are no Unit or Integration tests for Get-SecuronixIncidentAttachments. The official documentation does not provide an example response.

Describe the solution you'd like
When an example response JSON object is available, it should be added to the unit test file (\tests\unit\Securonix.CLI.IncidentManagement.Tests.ps1) and imported using ConvertFrom-Json. This behavior will match the other unit tests written in that file.

After unit tests for this cmdlet has been written, integration tests can be designed to follow a similar pattern.

The example payload should also be added to the cmdlet's doc page.

Describe alternatives you've considered
Unit and Integration tests have been disabled using the -Skip attribute.

Additional context
Official documentation is incomplete.
image

https://documentation.securonix.com/onlinedoc/Content/6.4%20Cloud/Content/SNYPR%206.4/6.4%20Guides/Web%20Services/6.4_REST%20API%20Categories.htm#Incident

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is neededintegration 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