Skip to content

Commit

Permalink
test(layer): upgrade Lambda layer version in tests NR-278207 (#442)
Browse files Browse the repository at this point in the history
Merging and closing
  • Loading branch information
ashishsinghnr authored Jun 7, 2024
1 parent a429cde commit 1b7a6f7
Show file tree
Hide file tree
Showing 24 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Run Snapshot Tests
run: npm test
- name: Upload Unit Test Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.4.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/arm64.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16XARM64:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16XARM64:96"
],
"package": {
"exclude": [
Expand Down Expand Up @@ -52,7 +52,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:71"
],
"package": {
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/debug-log-level.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -54,7 +54,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/debug.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -53,7 +53,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -50,7 +50,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/eu.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -55,7 +55,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/function-has-layers.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"service": "newrelic-lambda-layers-nodejs-example",
"provider": {
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"name": "aws",
"stage": "prod",
Expand Down Expand Up @@ -46,7 +46,7 @@
"runtime": "nodejs18.x",
"layers": [
"arn:aws:lambda:us-east-1:123456789012:layer:SomeOtherLayer:1",
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
]
},
"layer-nodejs18x2": {
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/include.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": { "exclude": [
"./**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"service": "newrelic-lambda-layers-nodejs-example",
"provider": {
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"name": "aws",
"stage": "prod",
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/lambda-extension-disabled.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -49,7 +49,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/lambda-extension-enabled.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -47,7 +47,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": [
Expand Down Expand Up @@ -53,7 +53,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/log-disabled.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -50,7 +50,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": [
Expand Down Expand Up @@ -57,7 +57,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/log-level.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -53,7 +53,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/manual-wrapping.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"provider": {
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"name": "aws",
"region": "us-east-1",
Expand Down
6 changes: 3 additions & 3 deletions tests/fixtures/node-versions.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -48,7 +48,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -67,7 +67,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:17"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:21"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -56,7 +56,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/provider-environment.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -55,7 +55,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/provider-layer.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"service": "newrelic-lambda-layers-nodejs-example",
"provider": {
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"name": "aws",
"stage": "prod",
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/proxy.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": [
Expand Down Expand Up @@ -52,7 +52,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/stage-included.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -49,7 +49,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -48,7 +48,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:92"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -49,7 +49,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:67"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down

0 comments on commit 1b7a6f7

Please sign in to comment.