Skip to content

Commit 5f04820

Browse files
committed
chore: removed unused file
1 parent eff6892 commit 5f04820

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ test-dockerized:
141141
@docker run --rm \
142142
-e DOCKER_API_VERSION=1.44 \
143143
-v /var/run/docker.sock:/var/run/docker.sock \
144-
-v "$(CURDIR)/tests/dockerized:/tests:ro" \
144+
-v "$(CURDIR)/test/dockerized:/tests:ro" \
145145
test-runner:local \
146146
--test-image local/test \
147147
--debug \

PR_DESCRIPTION.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
📬 *Issue #, if available:*
2+
3+
N/A
4+
5+
✍️ *Description of changes:*
6+
7+
This PR adds Docker-based testing infrastructure using AWS's [containerized-test-runner-for-aws-lambda](https://github.com/aws/containerized-test-runner-for-aws-lambda), enabling automated testing of Lambda functions in a containerized environment that closely mirrors the AWS Lambda execution environment.
8+
9+
The PR introduces a `test-dockerized` Makefile target that runs test suites defined in `test/dockerized/*.json` files. These test suites specify handlers to test (from the examples directory), request payloads, and expected response assertions with optional jq transforms for validation.
10+
11+
The infrastructure reuses Lambda binaries from the `/examples` folder as test handlers, demonstrating the concept with an initial test case for `basic-lambda`. Additional tests and multi-concurrency scenarios can be added by creating new test suite JSON files.
12+
13+
A GitHub Actions workflow provides CI/CD integration for automated testing on pull requests.
14+
15+
## Testing
16+
17+
Run dockerized tests locally:
18+
```bash
19+
make test-dockerized
20+
```
21+
22+
Run RIE tests:
23+
```bash
24+
make test-rie
25+
HANDLERS_TO_BUILD="basic-lambda basic-sqs" make test-rie
26+
```
27+
28+
Build specific examples:
29+
```bash
30+
EXAMPLES="basic-lambda basic-lambda-concurrent" make build-examples
31+
```
32+
33+
🔏 *By submitting this pull request*
34+
35+
- [x] I confirm that I've ran `cargo +nightly fmt`.
36+
- [x] I confirm that I've ran `cargo clippy --fix`.
37+
- [x] I confirm that I've made a best effort attempt to update all relevant documentation.
38+
- [x] I confirm that my contribution is made under the terms of the Apache 2.0 license.on.
39+
- [x] I confirm that my contribution is made under the terms of the Apache 2.0 license.

0 commit comments

Comments
 (0)