Skip to content

Instantly share code, notes, and snippets.

{
"id": "80ff6024-13ee-4ca1-be85-179d6f65ba5d",
"name": "Breaking Change Detector",
"values": [
{
"key": "env-apiKey",
"value": "",
"enabled": true
},
{
@allenheltondev
allenheltondev / Dockerfile
Created July 22, 2020 11:57
Updated Dockerfile for Load Testing with Postman
FROM blazemeter/taurus
# taurus includes python and pip
RUN pip install --no-cache-dir awscli
# Taurus working directory = /bzt-configs
ADD ./load-test.sh /bzt-configs/
# Added json files for Postman support
ADD Collection.json .
ADD test.json .
@allenheltondev
allenheltondev / test.json
Last active July 22, 2020 11:53
Load Test Rule Set
{
"execution": [
{
"executor": "newman",
"iterations": 5000,
"scenario": "simple"
}
],
"scenarios": {
"simple": {
{
"description": "<Your company here>",
"states": [
{
"name": "Trigger",
"type": "InitialState",
"properties": {
"offset": {
"x": 20,
"y": -170
// Pulls from Function Layer - Must pull from 'opt/nodejs/<filename>'
const db = require('/opt/nodejs/database');
// Pulls from Dependency Layer - Declared like normal
const Twilio = require('twilio');
const short = require('short-uuid');
const httpStatusCode = require('http-status-codes');
Globals:
Function:
Layers:
- !Ref FunctionLayer
- !Ref DependencyLayer
Runtime: nodejs12.x
Timeout: 10
Tracing: Active
FunctionLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: FunctionLayer
ContentUri: layers/
CompatibleRuntimes:
- nodejs12.x
RetentionPolicy: Retain
DependencyLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: dependency-layer
ContentUri: dependencies/
CompatibleRuntimes:
- nodejs12.x
RetentionPolicy: Retain
{
"dependencies": {
"twilio": "^3.39.3",
"http-status-codes": "^1.3.2"
}
}