Skip to content
Permalink
Browse files

[Server] Add GetContext test

  • Loading branch information
rldhont committed May 23, 2017
1 parent 261eba0 commit 319ade861d85d18cd904cfbb7180e303b0427016
Showing with 32 additions and 1 deletion.
  1. +1 −1 tests/src/python/test_qgsserver.py
  2. +31 −0 tests/testdata/qgis_server/getcontext.txt
@@ -193,7 +193,7 @@ def wms_request_compare(self, request, extra=None, reference_file=None):

def test_project_wms(self):
"""Test some WMS request"""
for request in ('GetCapabilities', 'GetProjectSettings'):
for request in ('GetCapabilities', 'GetProjectSettings', 'GetContext'):
self.wms_request_compare(request)

# Test getfeatureinfo response
@@ -0,0 +1,31 @@

Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<OWSContext xmlns:ogc="http://www.opengis.net/ogc" version="0.3.1" xmlns:context="http://www.opengis.net/context" xmlns="http://www.opengis.net/ows-context" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows-context="http://www.opengis.net/ows-context" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" id="ows-context-test_project" xmlns:ows="http://www.opengis.net/ows" xmlns:ns9="http://www.w3.org/2005/Atom" xmlns:ins="http://www.inspire.org">
<General>
<Window width="800" height="600"/>
<ows:Title>QGIS TestProject</ows:Title>
<ows:Abstract>Some UTF8 text èòù</ows:Abstract>
<ows:BoundingBox crs="EPSG:4326">
<ows:LowerCorner>44.9012 8.20315</ows:LowerCorner>
<ows:UpperCorner>44.9016 8.20416</ows:UpperCorner>
</ows:BoundingBox>
</General>
<ResourceList>
<Layer opacity="1" queryable="true" hidden="false" id="testlayer_èé" name="testlayer èé">
<ows:Title>A test vector layer</ows:Title>
<ows:OutputFormat>image/png</ows:OutputFormat>
<Server version="1.3.0" default="true" service="urn:ogc:serviceType:WMS">
<OnlineResource xlink:href="http:?&amp;"/>
</Server>
<ows:Abstract>A test vector layer with unicode òà</ows:Abstract>
<StyleList>
<Style current="true">
<Name>default</Name>
<Title>default</Title>
</Style>
</StyleList>
</Layer>
</ResourceList>
</OWSContext>

0 comments on commit 319ade8

Please sign in to comment.
You can’t perform that action at this time.