chore: add e2e and integ tests for web-search connector#1711
chore: add e2e and integ tests for web-search connector#1711nborges-aws wants to merge 1 commit into
Conversation
|
Claude Security Review: no high-confidence findings. (run) |
Package TarballHow to installgh release download pr-1711-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.23.0.tgz |
agentcore-cli-automation
left a comment
There was a problem hiding this comment.
LGTM. Test-only PR that re-adds e2e and integ suites for the web-search connector, refactored for the current --type connector --connector web-search shape and the configurations[] output schema.
Verified:
- No excessive mocking — tests use real temp projects and shell out to the real CLI.
- Telemetry helper is used at the correct boundaries (add and remove success paths).
- Config assertions match the current translator output (
parameterValues: {},parameterOverrides: [],configurations[0].name === 'WebSearch',domainFilter.exclude). - Negative paths cover repeated
--exclude-domains, wrong connector, removed--type web-searchalias, and duplicate names. - E2E cleanup is safe when
canRunis false (testDirandprojectPathguarded), and the region env var is restored inafterAll.
Non-blocking observation: the previous version of web-search-lifecycle.test.ts had a comment above the region pin explaining that "Web search is only available in us-east-1" — that comment was dropped in this refactor. Might be worth adding back so a future maintainer doesn't remove the override thinking it's unnecessary. Not a merge blocker.
Coverage Report
|
| import { afterAll, beforeAll, describe, expect, it } from 'vitest'; | ||
|
|
||
| const hasAws = hasAwsCredentials(); | ||
| const canRun = prereqs.npm && prereqs.git && prereqs.uv && hasAws; |
There was a problem hiding this comment.
nit: this has prereqs uv but the project is created with --skip-python-setup --no-agent so it might not be needed
Description
Add back integ and e2e test suite for web search, refactored to match latest connector devEx and config output schema.
Related Issue
Closes #
Documentation PR
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.