Uh oh!
There was an error while loading. Please reload this page.
feat(tests): add E2E and integration tests for Harness primitive - #1021
Conversation
E2E tests verify create/deploy/invoke/status against real AWS for Bedrock, OpenAI, and Gemini providers using a factory pattern that mirrors the existing agent E2E suite. Integ tests cover the add/remove lifecycle, configuration options (truncation, lifecycle, model provider), validation errors, and project scaffolding. Harness-bedrock is added to the PR E2E baseline alongside strands-bedrock so every PR exercises the harness deploy path.
agentcore-cli-automation
commented
Apr 29, 2026
Missing CI secrets for OpenAI/Gemini harness E2E testsThe Net effect:
Options:
At minimum, if option 1 isn't done before merge, the tests will look like they're running but aren't — which defeats the purpose of adding them. |
Uh oh!
There was an error while loading. Please reload this page.
Address review comment — reuse existing config-reader utility instead of inline helper.
tejaskash
commented
Apr 29, 2026
Addressed @Hweinstock's review comment: replaced inline |
Coverage Report
|
The Zod-validated return type from readProjectConfig makes the find() result possibly undefined. The preceding expect() guards against it at runtime.
Summary
harness-bedrockto the PR baseline E2E run in CI--no-harness-memory) to reduce deploy time; Bedrock keeps memory for full coverageDesign
Uses a factory pattern (
createHarnessE2ESuite) mirroring the existing agent E2E helper. Each provider gets its own test file so vitest runs all three in parallel. Tests within each file are sequential since they depend on prior steps (deploy before invoke before status).Test plan
npm run test:integ -- add-remove-harness)harness-bedrockin PR baseline