geopython / geopython/GeoHealthCheck

OWS Capabilities Probe: Check for Title element may raise false negative

Open
#328 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
92
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
All OWS `Capabilities` `Probes` share a `Check` for `Title>` string. See [here](https://github.com/geopython/GeoHealthCheck/blob/master/GeoHealthCheck/plugins/probe/owsgetcaps.py#L51). As `Title` may even be left out since `minOccurs=0` as per [OGC OWS schema](http://schemas.opengis.net/ows/2.0/owsDataIdentification.xsd), this may lead to `Check` failure (false negative).

**To Reproduce**
Steps to reproduce the behavior, e.g.:

1. add CSW Resource with URL: https://sextant.ifremer.fr/geonetwork/srv/eng/csw-EMODNET_Chemistry?
2. run Test
3. See test fails but https://sextant.ifremer.fr/geonetwork/srv/eng/csw-EMODNET_Chemistry?service=CSW&version=2.0.2&request=GetCapabilities is valid

**Expected Behavior**
Expected test to succeed.

**Screenshots or Logfiles**
Not required.

**Context (please complete the following information):**
- OS: any
- Browser N.A.
- Browser Version N.A.
- Python Version N.A.
- GeoHealthCheck Version 0.8.0

**Additional context**
The Check is basically a "Contains String", so need to find a String that is **always present in capabilities response for all OWSes**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.