
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
serverless-http-invoker
Advanced tools
Locally invoke Serverless functions via their HTTP event as specified in Serverless.yml for testing.
Locally invoke Serverless functions via their HTTP event as specified in Serverless.yml.
It makes it easy to test not only your handler logic, but also ensures that you have your http events setup properly in serverless.yml without deploying.
Use it in tests of Serverless functions to test your HTTP endpoints along with the handler code. For example, you can write the following to test a Serverless function:
it('should invoke simple path', function () {
let response = invoker.invoke('GET api/hello')
return expect(response).to.eventually.have.property('statusCode', 200)
})
The test above is a test of a Serverless function defined in a Serverless.yml
as follows:
functions:
hello:
handler: handler.hello
events:
- http:
path: api/hello
method: get
Some of the more common use cases are demonstrated in the basic tests at the basic test cases. An exhaustive list of what is supported in Some of the more common use cases are demonstrated in the basic tests at the comprehensive test cases.
Requires Node.js latest, LTS, and v10 (tested).
If you need Node.js v6.x - v9.x support you can use serverless-http-invoker@0.8.6.
Requires Serverless Framework v1.x. If you are new to the Serverless Framework, check out the Serverless Framework Getting Started Guide.
npm (npm install serverless-http-invoker --save-dev
) or yarn (yarn add serverless-http-invoker --dev
)
This is a community project. We invite your participation through issues and pull requests! You can peruse the contributing guidelines.
Give a βοΈ if this project helped you!
We use semantic-release to consistently release semver-compatible versions. This project deploys to multiple npm distribution tags. Each of the below branches correspond to the following npm distribution tags:
branch | npm distribution tag |
---|---|
main | latest |
beta | beta |
To trigger a release use a Conventional Commit following Angular Commit Message Conventions on one of the above branches.
Copyright Β© 2017 Scott Willeke.
This project is MIT licensed.
FAQs
Locally invoke Serverless functions via their HTTP event as specified in Serverless.yml for testing.
The npm package serverless-http-invoker receives a total of 91 weekly downloads. As such, serverless-http-invoker popularity was classified as not popular.
We found that serverless-http-invoker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.