This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Pro Yearly", | |
"description": "Pro Yearly plan on backbench.io", | |
"type": "INFINITE", | |
"payment_definitions": [ { | |
"name": "Regular payment definition", | |
"type": "REGULAR", | |
"frequency_interval": "1", | |
"frequency": "YEAR", | |
"cycles": "0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const asyncer = require("async") | |
const fs = require("fs") | |
const request = require('request') | |
const equate = require('fast-deep-equal') | |
exports.endpoint = async (event, out) => { | |
const arr = JSON.parse((fs.readFileSync('./config.json').toString())).data | |
asyncer.mapSeries(arr, (item, cb)=>{ | |
request(item.input, (err, res, body) => { | |
if (err) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!--<link rel="stylesheet" href="style/style.css">--> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<link href="https://unpkg.com/basscss@7.1.1/css/basscss.min.css" rel="stylesheet"> | |
<title>Health Page</title> | |
</head> | |
<body> | |
<div id="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.endpoint = async (req, cb) => { | |
bb.memGet("results", function(err, data){ | |
if (err){ | |
console.log(err) | |
cb(err) | |
} | |
cb(null, {data: data}) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.endpoint = function(req, cb){ | |
bb.memGet("graphs", function(err, data){ | |
if(err){ | |
cb(err) | |
console.log(err) | |
} | |
cb(null, {graph:[ | |
["status", "counts"], | |
["success", data.success], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Addressbookft", | |
"version": "1.0.0", | |
"description": "Address book functional testing", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Backbench", | |
"license": "UNLICENSED", | |
"dependencies": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"data": [ | |
{"input":{"url":"https://mybench-addressbook.backbench.io/new","method":"POST","auth":{"bearer":"securetoken"},"json":{"name":"Shane Watson","address":"Ipswich, Austrailia","mobile":"00000000000","email":"unknown@gmx.com"}},"output":{"data":[{"name":"Shane Watson","address":"Ipswich, Austrailia","mobile":"00000000000","email":"unknown@gmx.com"}]}}, | |
{"input":{"url":"https://mybench-addressbook.backbench.io/search","method":"POST","auth":{"bearer":"securetoken"},"json":{"keyword":"Shane Watson"}},"output":{"data":[{"name":"Shane Watson","address":"Ipswich, Austrailia","mobile":"00000000000","email":"unknown@gmx.com"}]}}, | |
{"input":{"url":"https://mybench-addressbook.backbench.io/delete","method":"POST","auth":{"bearer":"securetoken"},"json":{"keyword":"Shane Watson"}},"output":{"data":[]}}, | |
{"input":{"url":"https://mybench-addressbook.backbench.io/index","method":"POST","auth":{"bearer":"securetoken"}},"output":{"data":[]}} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const asyncer = require("async") | |
const fs = require("fs") | |
const request = require('request') | |
const equate = require('fast-deep-equal') | |
const arr = JSON.parse(fs.readFileSync('config.json')).data | |
exports.endpoint = async (event) => { | |
asyncer.mapSeries(arr, (item, cb)=>{ | |
request(item.input, (err, res, body) => { | |
if (err) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : "_design/excel", | |
"views" : { | |
"foo" : { | |
"map" : "function(doc){ emit(doc.id, doc.exectime)}" | |
} | |
} | |
} |