evanshortiss / fh-health Goto Github PK
View Code? Open in Web Editor NEWModule to add a "health" endpoint to a nodeapp.
License: Apache License 2.0
Module to add a "health" endpoint to a nodeapp.
License: Apache License 2.0
Add timers to each test case and return the run time for each in it's response data.
{
"description": "Test connection to service X",
"test_status": "ok",
"result": "Received a response from X"
"time": "60ms"
}
If a single test takes a large amount of time to complete the entire test case is affected by this and proxy timeout may cause the request to fail.
Need to implement a default timeout which will cancel any long running tests and force a response to be returned.
I need to build a better test to be certain of the behaviour, but when you have multiple tests and one of them crashes it's possible for the health check function to call the callback and indicate that tests have completed while it's still running some of the tests. I think some sort of try/catch around the call to the test is needed, with exceptions resulting in test failures.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.