9.3.1.13.1.1.1.1. GeoHealthCheck.plugins.check.checks
9.3.1.13.1.1.1.1.1. Classes
Checks if HTTP status code is not in the 400- or 500-range. |
|
Checks if header exists and has given header value. |
|
Checks if HTTP response has content type. |
|
Checks if HTTP response has image content type. |
|
Checks if HTTP response is valid XML. |
|
Checks if HTTP response is valid JSON. |
|
Checks if HTTP response contains given strings (keywords). |
|
Checks if HTTP response NOT contains given strings (keywords). |
|
Checks if HTTP response NOT contains given OWS Exceptions. |
9.3.1.13.1.1.1.1.2. Module Contents
- class GeoHealthCheck.plugins.check.checks.HttpStatusNoError
Bases:
GeoHealthCheck.check.CheckChecks if HTTP status code is not in the 400- or 500-range.
- NAME = 'HTTP status should not be errored'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'Response should not contain a HTTP 400 or 500 range Error'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- perform()
Default check: Resource should at least give no error
- class GeoHealthCheck.plugins.check.checks.HttpHasHeaderValue
Bases:
GeoHealthCheck.check.CheckChecks if header exists and has given header value. See http://docs.python-requests.org/en/master/user/quickstart
- NAME = 'Has specific HTTP Header value'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response has specific HTTP Header value'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Param defs
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.HttpHasContentType
Bases:
HttpHasHeaderValueChecks if HTTP response has content type.
- NAME = 'Has specific Content-Type'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response has specific Content-Type'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Params defs for header content type.
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.HttpHasImageContentType
Bases:
GeoHealthCheck.check.CheckChecks if HTTP response has image content type.
- NAME = 'HTTP response is image'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response has image/* Content-Type'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.XmlParse
Bases:
GeoHealthCheck.check.CheckChecks if HTTP response is valid XML.
- NAME = 'Valid XML response'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response contains valid XML'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.JsonParse
Bases:
GeoHealthCheck.check.CheckChecks if HTTP response is valid JSON.
- NAME = 'Valid JSON response'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response contains valid JSON'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.ContainsStrings
Bases:
GeoHealthCheck.check.CheckChecks if HTTP response contains given strings (keywords).
- NAME = 'Response contains strings'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response contains all (comma-separated) strings specified'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Param defs
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.NotContainsStrings
Bases:
ContainsStringsChecks if HTTP response NOT contains given strings (keywords).
- NAME = 'Response NOT contains strings'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = Multiline-String
Show Value
""" HTTP response does not contain any of the (comma-separated) strings specified """
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Param defs
- perform()
Perform this Check’s specific check. TODO: return Result object. :return:
- class GeoHealthCheck.plugins.check.checks.NotContainsOwsException
Bases:
NotContainsStringsChecks if HTTP response NOT contains given OWS Exceptions.
- NAME = 'Response NOT contains OWS Exception'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'HTTP response does not contain an OWS Exception'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Param defs