[Server] Add DescribeLayer test

This commit is contained in:
rldhont 2017-05-26 16:04:42 +02:00
parent c05d779ccd
commit e7d45a0976
2 changed files with 20 additions and 0 deletions

View File

@ -125,6 +125,12 @@ class TestQgsServerWMS(QgsServerTestBase):
'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"

View File

@ -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>