Skip to content
Permalink
Browse files

add disabled server test for gpkg getfeatureinfo filter

  • Loading branch information
tudorbarascu committed Jun 20, 2018
1 parent 52664b6 commit deb9f590fdc2ac43345863961a8593afef41be8d
@@ -233,6 +233,21 @@ def testGetFeatureInfoRelationReference(self):
'wms_getfeatureinfo-values2-text-xml',
'test_project_values.qgz')

# TODO make filter work with gpkg and move test inside testGetFeatureInfoFilter function
@unittest.expectedFailure
def testGetFeatureInfoFilterGPKG(self):
# 'test_project.qgz' ='test_project.qgs' but with a gpkg source + different fid
# Regression for #8656 Test getfeatureinfo response xml with gpkg datasource
# Mind the gap! (the space in the FILTER expression)
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9&' +
'INFO_FORMAT=text%2Fxml&' +
'width=600&height=400&srs=EPSG%3A3857&' +
'query_layers=testlayer%20%C3%A8%C3%A9&' +
'FEATURE_COUNT=10&FILTER=testlayer%20%C3%A8%C3%A9' + urllib.parse.quote(':"NAME" = \'two\''),
'wms_getfeatureinfo_filter_gpkg',
'test_project.qgz')

def testGetFeatureInfoFilter(self):
# Test getfeatureinfo response xml

Binary file not shown.
Binary file not shown.
@@ -0,0 +1,14 @@
Content-Length: 577
Content-Type: text/xml; charset=utf-8

<GetFeatureInfoResponse>
<BoundingBox maxy="5606017.87425818" maxx="913214.67407005" miny="5606017.87425818" CRS="EPSG:3857" minx="913214.67407005"/>
<Layer name="testlayer èé">
<Feature id="2">
<Attribute value="2" name="id"/>
<Attribute value="two" name="name"/>
<Attribute value="two àò" name="utf8nameè"/>
<BoundingBox maxy="5606017.8743" maxx="913214.6741" miny="5606017.8743" CRS="EPSG:3857" minx="913214.6741"/>
</Feature>
</Layer>
</GetFeatureInfoResponse>

0 comments on commit deb9f59

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