Skip to content

Commit

Permalink
fixup! fixup! fixup! [wip] Add tests using AWS' SAM CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Apr 11, 2024
1 parent cb22ffe commit 2ebf116
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/aws-lambda/handled.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Handled exceptions in AWS Lambda
# 3.9 is currently the minimum python version with a lambda runtime
@not-python-3.5 @not-python-3.6 @not-python-3.7 @not-python-3.8
Scenario: Handled exceptions are delivered in an AWS Lambda app
Given I run the "HelloWorldFunction" lambda
Given I run the "HelloWorldFunction" lambda with the "event.json" event
When I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Python Bugsnag Notifier" notifier
And the event "unhandled" is false
Expand Down
7 changes: 7 additions & 0 deletions features/steps/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@
And I invoke the '#{lambda_name}' lambda
")
end

Given("I run the {string} lambda with the {string} event") do |lambda_name, event|
steps("
Given I build the '#{lambda_name}' lambda
And I invoke the '#{lambda_name} --event events/#{event}' lambda
")
end

0 comments on commit 2ebf116

Please sign in to comment.