Skip to content

Commit

Permalink
chore: modified test cases for node js 22 (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
aavinash-nr authored Jan 2, 2025
1 parent 51835c1 commit 02069c0
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/arm64.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:97"
],
"package": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/debug-log-level.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/debug.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/eu.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
]
},
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"name": "aws",
"stage": "prod",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/log-disabled.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/log-level.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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 @@ -48,7 +48,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:45"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:47"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand All @@ -86,7 +86,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "handler.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS22X:1"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS22X:3"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/provider-environment.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"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:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"name": "aws",
"stage": "prod",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/proxy.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/stage-included.output.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"events": [{ "schedule": "rate(5 minutes)" }],
"handler": "newrelic-lambda-wrapper.handler",
"layers": [
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:97"
],
"package": {
"exclude": ["./**", "!newrelic-wrapper-helper.js"],
Expand Down

0 comments on commit 02069c0

Please sign in to comment.