TheJumpCloud / jcapi-powershell

MIT License
10 stars 3 forks source link

SA-3169 Search-JcSdkCommandResult #59

Closed jworkmanjc closed 1 year ago

jworkmanjc commented 1 year ago

Issues

What does this solve?

Search-JcSdkCommandResult added to module Get-JcSdkCommandResultByCommandId added to module (this function was previously tied to Get-JCCommandResult) By removing Get-JcSdkCommandResultByCommandId from Get-JCCommandResult, the ID parameter now works

Is there anything particularly tricky?

NO

How should this be tested?

Tests have been written to check the newly added functions/ functionality but the new functions can be tested:

Get-JCSdkCommandResult — Should return all command results in an org Get-JCSdkCommandResult -ID {SomeCommandResultID} — Should return a single command results in an org Get-JCSdkCommandResultByCommandID -Id {SomeCommandID} — Should return all command results in an org for a particular command Search-JCSdkCommandResult should return all command results Try to filter command results with the filter fields parameters to limit the commands returned.

Screenshots

kmaranionjc commented 1 year ago

Search-JCSdkCommandResult -fields "name" is cace sensitive. Outputted on the screen is Name same with the other properties.