Skip to content

Commit f0835ec

Browse files
committedJul 7, 2015
Change order of headers in server tests
1 parent 153deba commit f0835ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎tests/src/python/test_qgsserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def test_api(self):
5656
we are going to test if headers and body are returned correctly"""
5757
# Test as a whole
5858
response = str(self.server.handleRequest())
59-
expected = 'Content-Type: text/xml; charset=utf-8\nContent-Length: 206\n\n<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>\n</ServiceExceptionReport>\n'
59+
expected = 'Content-Length: 206\nContent-Type: text/xml; charset=utf-8\n\n<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>\n</ServiceExceptionReport>\n'
6060
self.assertEqual(response, expected)
6161
# Test header
6262
response = str(self.server.handleRequestGetHeaders())
63-
expected = 'Content-Type: text/xml; charset=utf-8\nContent-Length: 206\n\n'
63+
expected = 'Content-Length: 206\nContent-Type: text/xml; charset=utf-8\n\n'
6464
self.assertEqual(response, expected)
6565
# Test body
6666
response = str(self.server.handleRequestGetBody())

‎tests/testdata/qgis_server/getcapabilities.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Content-Type: text/xml; charset=utf-8
21
Content-Length: 5250
2+
Content-Type: text/xml; charset=utf-8
33

44
<?xml version="1.0" encoding="utf-8"?>
55
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/testproject.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" xmlns:sld="http://www.opengis.net/sld" xmlns:qgs="http://www.qgis.org/wms">

‎tests/testdata/qgis_server/getprojectsettings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Content-Type: text/xml; charset=utf-8
21
Content-Length: 6268
2+
Content-Type: text/xml; charset=utf-8
33

44
<?xml version="1.0" encoding="utf-8"?>
55
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/testproject.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" xmlns:sld="http://www.opengis.net/sld" xmlns:qgs="http://www.qgis.org/wms">

0 commit comments

Comments
 (0)
Please sign in to comment.