:py:mod:`GeoHealthCheck.plugins.check.checks` ============================================= .. py:module:: GeoHealthCheck.plugins.check.checks Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: GeoHealthCheck.plugins.check.checks.HttpStatusNoError GeoHealthCheck.plugins.check.checks.HttpHasHeaderValue GeoHealthCheck.plugins.check.checks.HttpHasContentType GeoHealthCheck.plugins.check.checks.HttpHasImageContentType GeoHealthCheck.plugins.check.checks.XmlParse GeoHealthCheck.plugins.check.checks.JsonParse GeoHealthCheck.plugins.check.checks.ContainsStrings GeoHealthCheck.plugins.check.checks.NotContainsStrings GeoHealthCheck.plugins.check.checks.NotContainsOwsException .. py:class:: HttpStatusNoError Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if HTTP status code is not in the 400- or 500-range. .. py:attribute:: NAME :value: 'HTTP status should not be errored' .. py:attribute:: DESCRIPTION :value: 'Response should not contain a HTTP 400 or 500 range Error' .. py:method:: perform() Default check: Resource should at least give no error .. py:class:: HttpHasHeaderValue Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if header exists and has given header value. See http://docs.python-requests.org/en/master/user/quickstart .. py:attribute:: NAME :value: 'Has specific HTTP Header value' .. py:attribute:: DESCRIPTION :value: 'HTTP response has specific HTTP Header value' .. py:attribute:: PARAM_DEFS Param defs .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: HttpHasContentType Bases: :py:obj:`HttpHasHeaderValue` Checks if HTTP response has content type. .. py:attribute:: NAME :value: 'Has specific Content-Type' .. py:attribute:: DESCRIPTION :value: 'HTTP response has specific Content-Type' .. py:attribute:: PARAM_DEFS Params defs for header content type. .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: HttpHasImageContentType Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if HTTP response has image content type. .. py:attribute:: NAME :value: 'HTTP response is image' .. py:attribute:: DESCRIPTION :value: 'HTTP response has image/* Content-Type' .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: XmlParse Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if HTTP response is valid XML. .. py:attribute:: NAME :value: 'Valid XML response' .. py:attribute:: DESCRIPTION :value: 'HTTP response contains valid XML' .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: JsonParse Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if HTTP response is valid JSON. .. py:attribute:: NAME :value: 'Valid JSON response' .. py:attribute:: DESCRIPTION :value: 'HTTP response contains valid JSON' .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: ContainsStrings Bases: :py:obj:`GeoHealthCheck.check.Check` Checks if HTTP response contains given strings (keywords). .. py:attribute:: NAME :value: 'Response contains strings' .. py:attribute:: DESCRIPTION :value: 'HTTP response contains all (comma-separated) strings specified' .. py:attribute:: PARAM_DEFS Param defs .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: NotContainsStrings Bases: :py:obj:`ContainsStrings` Checks if HTTP response NOT contains given strings (keywords). .. py:attribute:: NAME :value: 'Response NOT contains strings' .. py:attribute:: DESCRIPTION :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ HTTP response does not contain any of the (comma-separated) strings specified """ .. raw:: html
.. py:attribute:: PARAM_DEFS Param defs .. py:method:: perform() Perform this Check's specific check. TODO: return Result object. :return: .. py:class:: NotContainsOwsException Bases: :py:obj:`NotContainsStrings` Checks if HTTP response NOT contains given OWS Exceptions. .. py:attribute:: NAME :value: 'Response NOT contains OWS Exception' .. py:attribute:: DESCRIPTION :value: 'HTTP response does not contain an OWS Exception' .. py:attribute:: PARAM_DEFS Param defs