[mapserver-commits] r7412 - in trunk/msautotest/wxs: . expected

svn at osgeo.org svn at osgeo.org
Wed Feb 27 13:37:08 EST 2008


Author: tomkralidis
Date: 2008-02-27 13:37:08 -0500 (Wed, 27 Feb 2008)
New Revision: 7412

Added:
   trunk/msautotest/wxs/expected/wms_version_exception.xml
Modified:
   trunk/msautotest/wxs/wms_simple.map
Log:
Add test for invalid version (#2528)


Added: trunk/msautotest/wxs/expected/wms_version_exception.xml
===================================================================
--- trunk/msautotest/wxs/expected/wms_version_exception.xml	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wms_version_exception.xml	2008-02-27 18:37:08 UTC (rev 7412)
@@ -0,0 +1,9 @@
+Content-type: application/vnd.ogc.se_xml
+
+<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
+<!DOCTYPE ServiceExceptionReport SYSTEM "http://ogc.dmsolutions.ca/wms/1.1.1/exception_1_1_1.dtd">
+<ServiceExceptionReport version="1.1.1">
+<ServiceException>
+msOWSParseVersionString(): OWS error. Invalid version (1). Version must be in the format &#39;x.y&#39; or &#39;x.y.z&#39;
+</ServiceException>
+</ServiceExceptionReport>

Modified: trunk/msautotest/wxs/wms_simple.map
===================================================================
--- trunk/msautotest/wxs/wms_simple.map	2008-02-27 15:35:10 UTC (rev 7411)
+++ trunk/msautotest/wxs/wms_simple.map	2008-02-27 18:37:08 UTC (rev 7412)
@@ -7,6 +7,9 @@
 # Capabilities
 # RUN_PARMS: wms_cap.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
 #
+# version exception
+# RUN_PARMS: wms_version_exception.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1" > [RESULT]
+#
 # Capabilities updatesequence (less than)
 # RUN_PARMS: wms_caps_updatesequence.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&updatesequence=15" > [RESULT]
 #



More information about the mapserver-commits mailing list