Microservice for getting Project Helix performance results
This microservice runs performance tests on a customer website using Calibreapp, but only if the customer has a valid Project Helix account.
Send a POST request with following (Content-Type: application/json
-encoded) body parameters to https://adobeioruntime.net/api/v1/web/helix/helix-services/perf@v1
:
service
: the service ID of your Fastly service configtoken
: a Fastly authentication token that hasglobal
permission on the service configtests
: an array of test specs, i.e. objects with following propertiesurl
: the URL to testlocation
: the remote location to test fromdevice
: the device emulate during the testconnection
: the connection throttling settingsstrain
: the strain or variant to test
You need node>=8.0.0
and npm>=5.4.0
. Follow the typical npm install
, npm test
workflow.
Contributions are highly welcome.
Deploying Helix Perf requires the wsk
command line client, authenticated to a namespace of your choice. For Project Helix, we use the helix
namespace.
Run npm run deploy
to do a one-shot deploment of Helix Perf. All commits to master that pass the testing will be deployed automatically.