Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
serverless-spy
Advanced tools
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
CDK-based library for writing elegant, fast-executing integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
ServerlessSpy CDK construct creates infrastructure to intercept events in Lambda, SNS, SQS, EventBridge, DynamoDB, S3... and sends it to a testing library or your local web console via API Gateway WebSocket. The testing library subscribes to events so tests can be executed fast without checking/retrying if the process has finished. The testing library is integrated with Jest but can also be used with any other testing library. The web console can be used to see and inspect events in real time.
Your test for the example above would look something like this:
(
await serverlessSpyListener.waitForEventBridgeMyEventBus<TestData>({
condition: (d) => d.detail.id === id,
})
).toMatchObject(...);
(
await serverlessSpyListener.waitForSnsTopicMyTopic<TestData>({
condition: (d) => d.message.id === id,
})
).toMatchObject(...);
(
await serverlessSpyListener.waitForSqsMyQueue<TestData>({
condition: (d) => d.body.id === id,
})
).toMatchObject(...);
(
await (
await serverlessSpyListener.waitForFunctionMyLambdaRequest<TestData>({
condition: (d) => d.request.id === id,
})
).followedByResponse();
).toMatchObject(...);
(
await serverlessSpyListener.waitForDynamoDBMyTable<TestData>({
condition: (d) => d.keys.pk === id,
})
).toMatchObject({
eventName: 'INSERT',
newImage: ...,
});
You can see all the events in the local web console:
FAQs
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
The npm package serverless-spy receives a total of 735 weekly downloads. As such, serverless-spy popularity was classified as not popular.
We found that serverless-spy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.