opengeospatial / ets-csw202

Executable Test Suite for CSW 2.0.2
Other
2 stars 1 forks source link

Tests csw:csw-2.0.2-GetRecords-tc20.1 and csw:csw-2.0.2-GetRecords-tc21.1 fails cause of expected Exception #26

Closed lgoltz closed 4 years ago

lgoltz commented 6 years ago

Setup

SUT: TODO Tested with production

Testfailure

Request; Both tests expects an ExceptionReport but the service returns a GetRecordsResponse.

Request (csw:csw-2.0.2-GetRecords-tc20.1):

<csw:GetRecords xmlns="http://www.occamlab.com/ctl"
                xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
                xmlns:ctl="http://www.occamlab.com/ctl"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                xmlns:dct="http://purl.org/dc/terms/"
                xmlns:gen="java:com.occamlab.te.Generator"
                xmlns:gml="http://www.opengis.net/gml"
                xmlns:ogc="http://www.opengis.net/ogc"
                xmlns:ows="http://www.opengis.net/ows"
                xmlns:p="http://teamengine.sourceforge.net/parsers"
                xmlns:parsers="http://www.occamlab.com/te/parsers"
                xmlns:saxon="http://saxon.sf.net/"
                xmlns:te="http://www.occamlab.com/te"
                xmlns:tec="java:com.occamlab.te.TECore"
                xmlns:tems="java:com.occamlab.te.web.MonitorServlet"
                xmlns:xi="http://www.w3.org/2001/XInclude"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                resultType="results"
                service="CSW"
                version="2.0.2">
   <csw:Query typeNames="csw:SummaryRecord">
      <csw:ElementSetName>summary</csw:ElementSetName>
      <csw:Constraint version="1.1.0">
         <ogc:Filter>
            <ogc:PropertyIsLike escapeChar="\" singleChar="." wildCard="*">
               <ogc:PropertyName>dc:title</ogc:PropertyName>
               <ogc:Literal>*lorem*</ogc:Literal>
            </ogc:PropertyIsLike>
         </ogc:Filter>
      </csw:Constraint>
   </csw:Query>
</csw:GetRecords>

Failure:

Messages from parser p:XMLValidatingParser.OWS:
        Validation error:
  cvc-elt.1.a: Cannot find the declaration of element 'csw:GetRecordsResponse'.
1 validation error detected.

Message d1447e5887_1:
   [FAILURE] Missing or invalid response entity.

Notes:

lgoltz commented 6 years ago

As far as I see the csw:BriefRecord and csw:SummaryRecord are no valid values in a GetRecords request for typeNames. This is also what the service clains in the capabilities (csw:BriefRecord and csw:SummaryRecord are allowed values for DescribeRecord operation, not for GetRecords).

So I think the service has to return an ExceptionReport.

lgoltz commented 6 years ago

@lorebiga Do you agree?

lorebiga commented 6 years ago

@lgoltz looks like a validation error, similar to #24...

dstenger commented 4 years ago

@keshav-nangare Can you please check if this issue can be closed?

keshavnangare commented 4 years ago

@dstenger We can close this issue as it is similar to #24, please see https://github.com/opengeospatial/ets-csw202/issues/24#issuecomment-616364734 for more details.