Skip to content

Commit 019100f

Browse files
authored
test with node 22 (#176)
* test with node 22 * remove cloudfront edge lambda * remove poc lambda for cloudwatch to slack * remove testing * hookup test for checkurl
1 parent 4f4a140 commit 019100f

File tree

12 files changed

+7
-444
lines changed

12 files changed

+7
-444
lines changed

.circleci/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ jobs:
2929
- create_zip_upload_to_s3:
3030
lambdaFolder: "cloud-watch-to-slack-testing/deployment"
3131
s3BucketFolder: "cloudWatchToSlackTesting"
32-
- create_zip_upload_to_s3:
33-
lambdaFolder: "edge-lambda-for-s3/deployment"
34-
s3BucketFolder: "edgeLambdaForS3404s"
35-
- create_zip_upload_to_s3:
36-
lambdaFolder: "webhook-testing/deployment"
37-
s3BucketFolder: "webhookTesting"
3832

3933
# Make this a separate job because AWS SAM needs to run in
4034
# the container specified in the template.yml

.github/workflows/maven.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,9 @@ jobs:
4949
python -m pytest tests/unit -v
5050
pylint cwl_pack_function
5151
pylint tests
52-
53-
52+
- name: Test checkurl with SAM CLI build and invoke
53+
working-directory: ./checkUrlExists
54+
run: |
55+
sam build --use-container
56+
sam local invoke LambdaFunction -e events/event.json &> output.txt
57+
grep "statusCode\": 200" output.txt

checkUrlExists/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resources:
1616
Properties:
1717
CodeUri: lambda/
1818
Handler: index.lambdaHandler
19-
Runtime: nodejs18.x
19+
Runtime: nodejs22.x
2020
Events:
2121
Lambda:
2222
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api

edge-lambda-for-s3/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

edge-lambda-for-s3/deployment/index.js

Lines changed: 0 additions & 123 deletions
This file was deleted.

edge-lambda-for-s3/edge-lambda-for-s3-404s.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

webhook-testing/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

webhook-testing/deployment/index.js

Lines changed: 0 additions & 179 deletions
This file was deleted.

webhook-testing/deployment/output-template.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)