Skip to content

test(cli): start-URL redirect estimate, registration and online-mode e2e #1281 - #1404

Closed
nc9 wants to merge 2 commits into
mainfrom
test/start-redirect-estimate-online-1281
Closed

nc9 wants to merge 2 commits into
mainfrom
test/start-redirect-estimate-online-1281

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1281 (credit estimate and the online e2e; the cloud alias is private, filed as squirrelscan/repo#3695)

Test only.

  • MCP audit_website (billed path): a cross-domain start URL asks for consent before any estimate, registration or cloud call (confirm: true alone does not follow it); with followRedirect an estimate is returned without registering and nothing in it names the redirector (the estimate figure is host-independent, so this test does not prove which host it was made for); the registered run is the destination's and the redirector is requested once (the chain resolution).
  • squirrel audit without --offline (the signed-out default): -y alone does not follow (exit 4, nothing crawled), --follow-redirect audits the destination with the original URL and chain in the report, a same-site path change is followed with no flag.
  • Not covered here: the stubbed-fetch MCP billing suite has no real Response.url, so its report shows the chain without the final hop; the real-server MCP and CLI tests show the full chain.

Still open on #1281 (not proven by this PR):

  • the estimate is made on the destination (needs a host-carrying assertion)
  • egress/SSRF test for the redirect hop
  • outputs, docs and completions for the new flag
  • an http to https to www chain test

Docs: none. Skill change: none.

nik

nc9 added 2 commits October 31, 2026 13:36
…le the estimate test to what it asserts #1281

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the test/start-redirect-estimate-online-1281 branch from 301bdaa to 0b49724 Compare October 31, 2026 02:38
@nc9 nc9 mentioned this pull request Oct 31, 2026
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.148 as 69701e19 8d206c35 via #1427. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.148. Closing this original.

nik

@nc9 nc9 closed this Oct 31, 2026
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