Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Environment Health Check Test Template
The template below contains the mandatory export of your run function for our Integration Hub platform and ensures that the main function returns a promise.
The outcome of your test should return true or false results via: Promise.Resolve();
- resolve(true) = your environment is ONLINE
- resolve(false) = your environment is OFFLINE
Any errors thrown during script execution or a call to Reject will be treated as a result of Unknown:
- Meaning that reject(true) = your environment status is UNKNOWN.
let run = function (args) {
return new Promise(async function (resolve, reject) {
console.log('Beginning EnvironmentCheck test');
//Insert test code here.
console.log('Completed EnvironmentCheck test');
module.exports = {
run: run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.