9.1.1.1.1.1.1.1. GeoHealthCheck.plugins.check.checks

9.1.1.1.1.1.1.1.1. Module Contents

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

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'
DESCRIPTION = 'Response should not contain a HTTP 400 or 500 range Error'
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'
DESCRIPTION = 'HTTP response has specific HTTP Header value'
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'
DESCRIPTION = 'HTTP response has specific Content-Type'
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'
DESCRIPTION = 'HTTP response has image/* Content-Type'
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'
DESCRIPTION = 'HTTP response contains valid XML'
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'
DESCRIPTION = 'HTTP response contains valid JSON'
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'
DESCRIPTION = 'HTTP response contains all (comma-separated) strings specified'
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'
DESCRIPTION = Multiline-String
Show Value
"""
        HTTP response does not contain any of the
        (comma-separated) strings specified
        """
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'
DESCRIPTION = 'HTTP response does not contain an OWS Exception'
PARAM_DEFS

Param defs