Skip to content

Commit e7d45a0

Browse files
committedMay 26, 2017
[Server] Add DescribeLayer test
1 parent c05d779 commit e7d45a0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
 

‎tests/src/python/test_qgsserver_wms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ def test_project_wms(self):
125125
'FEATURE_COUNT=10&FILTER=testlayer%20%C3%A8%C3%A9' + urllib.parse.quote(':"NAME" = \'two\' OR "utf8nameè" = \'three èé↓\''),
126126
'wms_getfeatureinfo_filter_or_utf8')
127127

128+
# Test DescribeLayer
129+
self.wms_request_compare('DescribeLayer',
130+
'&layers=testlayer%20%C3%A8%C3%A9&' +
131+
'SLD_VERSION=1.1.0',
132+
'describelayer')
133+
128134
def wms_inspire_request_compare(self, request):
129135
"""WMS INSPIRE tests"""
130136
project = self.testdata_path + "test_project_inspire.qgs"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*****
2+
Content-Type: text/xml; charset=utf-8
3+
4+
<?xml version="1.0" encoding="utf-8"?>
5+
<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">
6+
<Version>1.1.0</Version>
7+
<LayerDescription>
8+
<owsType>wfs</owsType>
9+
<se:OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?*****"/>
10+
<TypeName>
11+
<se:FeatureTypeName>testlayer èé</se:FeatureTypeName>
12+
</TypeName>
13+
</LayerDescription>
14+
</DescribeLayerResponse>

0 commit comments

Comments
 (0)
Please sign in to comment.