Skip to content

Add Catchpoint public cmdlets for tests and instant tests - #98

Merged
stevevillardi merged 2 commits into
mainfrom
feat-catchpoint-public-methods
Sep 11, 2026
Merged

stevevillardi merged 2 commits into
mainfrom
feat-catchpoint-public-methods

Conversation

@cameroncompton-wq

Copy link
Copy Markdown
Contributor

Summary

  • Add Catchpoint session cmdlets (Connect-CPAccount, disconnect/status, and cached credentials) using REST API v2 bearer tokens
  • Add Test and InstantTest cmdlets against /v4/Tests and /v4/InstantTests (list/create/update, alert state, enumerations, script convert, instant test run/results)
  • Keep Catchpoint cached accounts out of Connect-LMAccount and ignore local Catchpoint API docs

Test plan

  • Import the module and run Connect-CPAccount -BearerToken <token>
  • Run Get-CPAccountStatus and Get-CPTests
  • Run Get-CPTests -Id <id> and Get-CPTestEnumeration
  • Run an instant test (New-CPInstantTest or Invoke-CPInstantTest) and fetch results with Get-CPInstantTest
  • Confirm Connect-LMAccount -UseCachedCredential does not list Catchpoint cached accounts
  • Run Invoke-Pester -Path ./Tests/CP

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@stevevillardi
stevevillardi merged commit ee891e4 into main Sep 11, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants