Skip to content

Instantly share code, notes, and snippets.

@ahinz
Created April 23, 2012 14:24
Show Gist options
  • Save ahinz/2471228 to your computer and use it in GitHub Desktop.
Save ahinz/2471228 to your computer and use it in GitHub Desktop.
Log for test s0002/d1e6546_1/d1e6418_1/d1e1830_1
Test csw:csw-2.0.2-GetRecordById-tc1.2 (s0002/d1e6546_1/d1e6418_1/d1e1830_1)
Assertion:
The response to a GetRecordById request without the ElementSetName parameter
must produce a response containing a summary view of all matching records.
Request d1e1992_1:
Method: POST
URL: http://76.124.185.24:9810/pycsw/csw.py
Body:
<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: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: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:Record">
<csw:ElementSetName>brief</csw:ElementSetName>
</csw:Query>
</csw:GetRecords>
Response from parser p:XMLValidatingParser.CSW:
<ows:ExceptionReport xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"
xmlns:fgdc="http://www.opengis.net/cat/csw/csdgm"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0"
xmlns:inspire_ds="http://inspire.ec.europa.eu/schemas/inspire_ds/1.0"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:os="http://a9.com/-/spec/opensearch/1.1/"
xmlns:ows="http://www.opengis.net/ows"
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
language="en-US"
version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="InvalidRequest" locator="service">
<ows:ExceptionText>Exception: the document is not valid.
Error: Error reading file '/home/vagrant/src/opengeo/pycsw/pyscw/etc/schemas/ogc/csw/2.0.2/CSW-discovery.xsd': failed to load external entity "/home/vagrant/src/opengeo/pycsw/pyscw/etc/schemas/ogc/csw/2.0.2/CSW-discovery.xsd"</ows:ExceptionText>
</ows:Exception>
<!--Response received in [148] milliseconds--></ows:ExceptionReport>
Request d1e2025_1:
Method: GET
URL: http://76.124.185.24:9810/pycsw/csw.py?service=CSW&version=2.0.2&request=GetRecordById&id=urn:uuid:ce8627a0-685c-11db-bd13-0800200c9a66,
Response from parser p:XMLValidatingParser.CSW:
<csw:GetRecordByIdResponse xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"
xmlns:fgdc="http://www.opengis.net/cat/csw/csdgm"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0"
xmlns:inspire_ds="http://inspire.ec.europa.eu/schemas/inspire_ds/1.0"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:os="http://a9.com/-/spec/opensearch/1.1/"
xmlns:ows="http://www.opengis.net/ows"
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"><!--Response received in [168] milliseconds--></csw:GetRecordByIdResponse>
Message d1e2067_1:
[FAILURE] Expected one record in response.
Result: Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment