Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Feb 19, 2025
1 parent 604ab2b commit 9b966ba
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/e2e/aws-sam/features/invoke.feature
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,21 @@ Scenario: Executing a lambda function that returns a HTML body
And the SAM exit code equals 0

Scenario: Executing a lambda function that returns nothing

Given I invoke the "NoResponseFunction" lambda in "features/fixtures/ruby-app"
And the lambda response "body" is null
And the lambda response "statusCode" equals 200
And the SAM exit code equals 0

Scenario: Executing a lambda function that fails with no internal errors
Given I invoke the "ProcessExitFunction" lambda in "features/fixtures/node-app"
Then the lambda response "errorMessage" contains "this is an error"
And the lambda response "errorType" equals "Error"
Then the lambda response "errorMessage" contains "Error: Runtime exited with error: exit status 1"
And the lambda response "errorType" equals "Runtime.ExitError"
And the lambda response "body" is null
And the SAM exit code equals 0

Scenario: Executing a lambda function that fails with an internal error
Given I invoke the "NoResponseFunction" lambda in "features/fixtures/ruby-app"
Given I invoke the "ThrownErrorFunction" lambda in "features/fixtures/node-app"
Then the lambda response "errorMessage" contains "this is an error"
And the lambda response "errorType" equals "Error"
And the lambda response "body" is null
And the lambda response "statusCode" equals 200
And the SAM exit code equals 0

0 comments on commit 9b966ba

Please sign in to comment.