9.3.1.13.1.1.1.1. GeoHealthCheck.plugins.check.checks

9.3.1.13.1.1.1.1.1. Classes

HttpStatusNoError

Checks if HTTP status code is not in the 400- or 500-range.

HttpHasHeaderValue

Checks if header exists and has given header value.

HttpHasContentType

Checks if HTTP response has content type.

HttpHasImageContentType

Checks if HTTP response has image content type.

XmlParse

Checks if HTTP response is valid XML.

JsonParse

Checks if HTTP response is valid JSON.

ContainsStrings

Checks if HTTP response contains given strings (keywords).

NotContainsStrings

Checks if HTTP response NOT contains given strings (keywords).

NotContainsOwsException

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.Check

Checks 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.Check

Checks 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: HttpHasHeaderValue

Checks 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.Check

Checks 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.Check

Checks 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.Check

Checks 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.Check

Checks 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: ContainsStrings

Checks 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: NotContainsStrings

Checks 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