opengeospatial / ets-csw202

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

Test csw:csw-2.0.2-GetCapabilities-tc7.2 requires FilterCapabilities even though that section has not been requested #4

Closed bermud closed 8 years ago

bermud commented 10 years ago

Result:

Test csw:csw-2.0.2-GetCapabilities-tc7.2 type Mandatory default result Passed (s0004/d1433e6483_1/d1433e6345_1/d1433e435_1)

Assertion: 
      The response to a GetCapabilities request that includes a sections parameter 
      listing optional elements shall include only the requested elements in the 
      response entity.

Request d1433e1136_1:
   Method: GET
   URL: http://inspire-geoportal.ec.europa.eu/GeoportalProxyWebServices/resources/OGCCSW202?service=CSW&request=GetCapabilities&sections=OperationsMetadata,ServiceIdentification
   Response from parser p:XMLValidatingParser.CSW:

   Messages from parser p:XMLValidatingParser.CSW:
        Validation error:
  cvc-complex-type.2.4.b: The content of element \'ns4:Capabilities\' is not complete. One of \'{\""http://www.opengis.net/ogc\"":Filter_Capabilities}\' is expected.
1 validation error detected.

Message d1433e1164_1:
   FAILURE: Missing response entity.

Result: Failed

Originally reported in the OGC CITE issue tracker: issue #922

Entered by: Quaglia, Angelo

Opened: 2013-12-16 11:33:43 Last Updated: 2014-01-07 05:34:10

bermud commented 10 years ago

if requested sections=OperationsMetadata,ServiceIdentification

why is Filter_Capabilities expected in the response?

Entered By: Quaglia, Angelo - 2013-12-16 11:34:47

bermud commented 8 years ago

@lorebiga, do we have any final resolution to this question/issue?

lorebiga commented 8 years ago

Filter_Capabilities is mandatory in the response, as per the Capabilities schema. The test fails because the response is invalid without that.

The test comment reads: "Pass if the response is schema valid and includes only the requested optional elements."

From OGC 05-008: 7.3.3 (p.17) and OGC 07-006r1: 7.2.3.2 (p.30-31), the response to a GetCapabilities request that includes a sections parameter listing optional elements shall be a valid document including only the requested optional elements.

I'm editing the test assertion to make it clearer.

bermud commented 8 years ago

Fixed with 862d4857ecf6bc04f435fce0f608fa3ca30a933b