Skip to content

test: integration tests for client wrapper against scanii-cli#108

Merged
rferreira merged 2 commits into
mainfrom
change/scanii-lambda-followups
Apr 30, 2026
Merged

test: integration tests for client wrapper against scanii-cli#108
rferreira merged 2 commits into
mainfrom
change/scanii-lambda-followups

Conversation

@rferreira

Copy link
Copy Markdown
Collaborator

Summary

  • Adds tests/client.integration.js — exercises lib/client.js (the retry wrapper around @scanii/core) against a real scanii-cli server
  • Covers: fetch happy path, metadata passthrough, retrieve after fetch, and unknown-id error path
  • Tests skip gracefully when scanii-cli is not reachable (safe to run locally without it)
  • Adds scanii/setup-cli-action@v1 to pr.yml so CI always exercises the integration suite

Test plan

  • All 36 tests pass locally (32 unit + 4 integration against local scanii-cli)
  • Integration tests show as skipped (not failed) when scanii-cli is not running

🤖 Generated with Claude Code

rferreira and others added 2 commits April 30, 2026 00:35
Tests fetch, retrieve, metadata passthrough, and unknown-id error
handling against a real scanii-cli server. Tests skip gracefully when
scanii-cli is not running. pr.yml now starts scanii-cli via
scanii/setup-cli-action@v1 before running the suite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace https://example.com/ with the server's own /static/samples/malware
endpoint — no dependency on external hosts, and the URL is served by
the same scanii-cli process that handles the fetch request.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rferreira
rferreira merged commit 6530ca8 into main Apr 30, 2026
6 checks passed
@rferreira
rferreira deleted the change/scanii-lambda-followups branch April 30, 2026 11:59
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.

1 participant