connected-web / product-monitor

A HTML/JavaScript template for monitoring a product by encouraging product developers to gather all the information about the status of a product, including live monitoring, statistics, endpoints, and test results into one place.
8 stars 3 forks source link

Need a way to test mime-type and multiple values in <status-button> component #40

Closed johnbeech closed 9 years ago

johnbeech commented 9 years ago

Performing a simple string check against content doesn't meet our requirements for endpoint testing. It would be useful if the status-button component could support other values, for example:

<status-button data-source="http://tal-launcher.int.tools.bbc.co.uk/tal-launcher/?brand=google&model=chrome" data-contains="/someregex/" mime-type="text/html">Index for Brand: google, Model: chrome</status-button>
johnbeech commented 9 years ago

Added in support for <status-button data-content-type="text/json"> type expression as mime-type isn't a recognised type of header.