Skip to content

test(integ): add multi-agent workflow and credential lifecycle integration tests#693

Open
aidandaly24 wants to merge 2 commits intoaws:mainfrom
aidandaly24:add-integ-tests-credential-multiagent
Open

test(integ): add multi-agent workflow and credential lifecycle integration tests#693
aidandaly24 wants to merge 2 commits intoaws:mainfrom
aidandaly24:add-integ-tests-credential-multiagent

Conversation

@aidandaly24
Copy link
Copy Markdown
Contributor

@aidandaly24 aidandaly24 commented Mar 27, 2026

Description

Adds two new integration test suites covering multi-agent project workflows and credential provider lifecycle management:

integ-tests/multi-agent-workflows.test.ts (24 tests)

  • Adding multiple agents (Strands, LangGraph, MCP, BYO) to a single project
  • Shared resources (memory, gateway, gateway targets) across agents
  • Selective agent removal preserving other agents and resources
  • Re-adding agents with previously removed names
  • Mixed model providers with credential isolation (Bedrock IAM, Gemini, OpenAI)
  • remove all clearing agents/resources while preserving project structure
  • Error cases (duplicate names, non-existent agent removal)

integ-tests/credential-lifecycle.test.ts (16 tests)

  • API key credential full lifecycle (create, config verification, .env.local write, duplicate handling, removal, env preservation)
  • OAuth credential lifecycle (create with all fields, config verification including discoveryUrl/vendor/scopes, .env.local write, removal)
  • Cross-resource dependency blocking (credential removal blocked when referenced by gateway target, succeeds after target removal)
  • Error validation (missing --name, missing --api-key, remove non-existent credential)

Related Issue

Closes #

Documentation PR

N/A — test-only changes

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): integ test

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

24 tests covering the full multi-agent lifecycle:
- Mixed agent types (template, BYO) and protocols (HTTP, MCP)
- Shared resources (memory, gateway) coexisting with agents
- Selective agent removal preserving siblings and resources
- Agent name reuse after removal
- Credential isolation (project-scoped reuse vs agent-scoped)
- MCP agents skip credential creation
- Remove-all clears all resource types
- Project reusability after remove-all

Confidence: high
Scope-risk: narrow
16 tests covering API key and OAuth credential CRUD, .env.local
management, cross-resource dependency blocking (gateway target
references), and error validation cases.

Constraint: mcp-server targets don't support API_KEY outbound auth
Confidence: high
Scope-risk: narrow
@aidandaly24 aidandaly24 requested a review from a team March 27, 2026 03:01
@github-actions github-actions bot added the size/l PR size: L label Mar 27, 2026
@aidandaly24 aidandaly24 changed the title feat(integ): add multi-agent workflow and credential lifecycle integration tests test(integ): add multi-agent workflow and credential lifecycle integration tests Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant