Skip to content
Permalink
Browse files

[Server] Add GetStyles test

  • Loading branch information
rldhont committed May 29, 2017
1 parent 8356c76 commit ada87156913f0b8538a264dd7f92774509b44646
Showing with 35 additions and 0 deletions.
  1. +4 −0 tests/src/python/test_qgsserver_wms.py
  2. +31 −0 tests/testdata/qgis_server/getstyles.txt
@@ -130,6 +130,10 @@ def test_project_wms(self):
'&layers=testlayer%20%C3%A8%C3%A9&' +
'SLD_VERSION=1.1.0',
'describelayer')
# Test GetStyles
self.wms_request_compare('GetStyles',
'&layers=testlayer%20%C3%A8%C3%A9&',
'getstyles')

def wms_inspire_request_compare(self, request):
"""WMS INSPIRE tests"""
@@ -0,0 +1,31 @@
*****
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se" version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<NamedLayer>
<se:Name>testlayer èé</se:Name>
<UserStyle>
<se:Name>default</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#66a443</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#000000</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>7</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

0 comments on commit ada8715

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