opengeospatial / ets-csw202

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

allow for higher versions than CSW 2.0.2 #8

Closed tomkralidis closed 9 years ago

tomkralidis commented 9 years ago

CSW 2.0.2 (using OWS Common 1.0.0) and CSW 3.0.0 (using OWS Common 2.0.0) both prescribe (in clause 7.3.2):

Furthermore, if a server receives a GetCapabilities request without the AcceptVersions parameter, it shall return a service metadata document that is compliant to the highest protocol version that the server supports

Now that CSW 3.0.0 is available, a given endpoint supporting both CSW 2.0.2 and CSW 3.0.0 returns 3.0.0 per clause 7.3.2.

The CSW 2.0.2 tests need to account for newer response on some of the tests so they do not fail if a higher (albiet not 2.0.2) version is returned.

kalxas commented 9 years ago

+1

lorebiga commented 9 years ago

hi Tom, I think test 'csw:csw-2.0.2-GetCapabilities-tc1.1' should be amended to force 2.0.2 Capabilities to be returned, by adding the 'AcceptVersions' parameter. Would it work for you?

tomkralidis commented 9 years ago

Hi @lorebiga, agree. Either acceptversions=2.0.2 or version=2.0.2 (latter is preferable).

lorebiga commented 9 years ago

the specs say (§10.5.2): "CSW servers shall implement the request, service, Sections, AcceptVersions and AcceptFormats operation request parameters." So I'd pick the AcceptVersions parameter.

lorebiga commented 9 years ago

I've added the AcceptVersions parameter, let me know if the fix works.

tomkralidis commented 9 years ago

Works when testing locally. Thanks!

lorebiga commented 9 years ago

Great! Thanks for reporting!