Commit 07e4bb5
refactor(integration-tests): consolidate lambda code and test structure (#1102)
## Overview
- Some refactoring to cleanup the integration test code, will make it
easier for some future changes I plan on making (adding more
comprehensive tests)
- No change to actual extension code.
## Summary
- Rename `base` stack to `on-demand` for clearer naming
- Create shared lambda handlers (`default-*`) used by on-demand, lmi,
and snapstart stacks
- Refactor tests to use `describe.each` pattern for iterating over
runtimes
- Add new test utilities (`default.ts`, `invoke.ts`) for cleaner test
organization
- Remove duplicate per-stack lambda code in favor of shared handlers
This refactoring consolidates ~20 duplicate lambda handler files into 4
shared handlers (one per runtime), making the test infrastructure easier
to maintain and extend.
## Test plan
- [x] Deployed on-demand stack to sandbox account
- [x] Ran `on-demand.test.ts` - all 40 tests passed
- [x] CI checks
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 67eebf0 commit 07e4bb5
File tree
48 files changed
+1622
-2477
lines changed- .gitlab/datasources
- integration-tests
- bin
- lambda
- base-dotnet
- base-java
- src/main/java/example
- base-node
- base-python
- default-dotnet
- default-java
- src/main/java/example
- default-node
- default-python
- lmi-dotnet
- lmi-java/src/main/java/example
- lmi-node
- lmi-python
- snapstart-dotnet
- snapstart-java
- src/main/java/example
- snapstart-python
- lib/stacks
- tests
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+1622
-2477
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments