Skip to content

Commit

Permalink
[Server] Add DescribeLayer test
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed May 26, 2017
1 parent c05d779 commit e7d45a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/python/test_qgsserver_wms.py
Expand Up @@ -125,6 +125,12 @@ def test_project_wms(self):
'FEATURE_COUNT=10&FILTER=testlayer%20%C3%A8%C3%A9' + urllib.parse.quote(':"NAME" = \'two\' OR "utf8nameè" = \'three èé↓\''),
'wms_getfeatureinfo_filter_or_utf8')

# Test DescribeLayer
self.wms_request_compare('DescribeLayer',
'&layers=testlayer%20%C3%A8%C3%A9&' +
'SLD_VERSION=1.1.0',
'describelayer')

def wms_inspire_request_compare(self, request):
"""WMS INSPIRE tests"""
project = self.testdata_path + "test_project_inspire.qgs"
Expand Down
14 changes: 14 additions & 0 deletions tests/testdata/qgis_server/describelayer.txt
@@ -0,0 +1,14 @@
*****
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<DescribeLayerResponse xmlns="http://www.opengis.net/sld" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/DescribeLayer.xsd" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink">
<Version>1.1.0</Version>
<LayerDescription>
<owsType>wfs</owsType>
<se:OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?*****"/>
<TypeName>
<se:FeatureTypeName>testlayer èé</se:FeatureTypeName>
</TypeName>
</LayerDescription>
</DescribeLayerResponse>

0 comments on commit e7d45a0

Please sign in to comment.