[mapserver-commits] r11222 - in trunk/msautotest/misc: . expected

svn at osgeo.org svn at osgeo.org
Fri Mar 18 10:20:02 EDT 2011


Author: sdlime
Date: 2011-03-18 07:20:01 -0700 (Fri, 18 Mar 2011)
New Revision: 11222

Added:
   trunk/msautotest/misc/expected/runtime_sub_test001.txt
   trunk/msautotest/misc/expected/runtime_sub_test002.gif
   trunk/msautotest/misc/expected/runtime_sub_test003.txt
   trunk/msautotest/misc/expected/runtime_sub_test004.gif
   trunk/msautotest/misc/expected/runtime_sub_test005.txt
   trunk/msautotest/misc/expected/runtime_sub_test006.gif
   trunk/msautotest/misc/expected/runtime_sub_test007.txt
   trunk/msautotest/misc/expected/runtime_sub_test008.gif
   trunk/msautotest/misc/runtime_sub.map
Log:
Adding a set of tests for runtime substitution...

Added: trunk/msautotest/misc/expected/runtime_sub_test001.txt
===================================================================
--- trunk/msautotest/misc/expected/runtime_sub_test001.txt	                        (rev 0)
+++ trunk/msautotest/misc/expected/runtime_sub_test001.txt	2011-03-18 14:20:01 UTC (rev 11222)
@@ -0,0 +1,9 @@
+<HTML>
+<HEAD><TITLE>MapServer Message</TITLE></HEAD>
+<!-- MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=GDAL INPUT=SHAPEFILE -->
+<BODY BGCOLOR="#FFFFFF">
+msDrawMap(): Image handling error. Failed to draw layer named &#39;layer1&#39;.
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name1%)
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name1%)
+msValidateParameter(): Regular expression error. Parameter pattern validation failed.
+</BODY></HTML>
\ No newline at end of file

Added: trunk/msautotest/misc/expected/runtime_sub_test002.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/runtime_sub_test002.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/misc/expected/runtime_sub_test003.txt
===================================================================
--- trunk/msautotest/misc/expected/runtime_sub_test003.txt	                        (rev 0)
+++ trunk/msautotest/misc/expected/runtime_sub_test003.txt	2011-03-18 14:20:01 UTC (rev 11222)
@@ -0,0 +1,9 @@
+<HTML>
+<HEAD><TITLE>MapServer Message</TITLE></HEAD>
+<!-- MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=GDAL INPUT=SHAPEFILE -->
+<BODY BGCOLOR="#FFFFFF">
+msDrawMap(): Image handling error. Failed to draw layer named &#39;layer2&#39;.
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/bad value)
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/bad value)
+msEvalRegex(): Regular expression error. String failed expression test.
+</BODY></HTML>
\ No newline at end of file

Added: trunk/msautotest/misc/expected/runtime_sub_test004.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/runtime_sub_test004.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/misc/expected/runtime_sub_test005.txt
===================================================================
--- trunk/msautotest/misc/expected/runtime_sub_test005.txt	                        (rev 0)
+++ trunk/msautotest/misc/expected/runtime_sub_test005.txt	2011-03-18 14:20:01 UTC (rev 11222)
@@ -0,0 +1,10 @@
+<HTML>
+<HEAD><TITLE>MapServer Message</TITLE></HEAD>
+<!-- MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=GDAL INPUT=SHAPEFILE -->
+<BODY BGCOLOR="#FFFFFF">
+msDrawMap(): Image handling error. Failed to draw layer named &#39;layer3&#39;.
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name3%)
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name3%)
+msValidateParameter(): Regular expression error. Parameter pattern validation failed.
+msEvalRegex(): Regular expression error. String failed expression test.
+</BODY></HTML>
\ No newline at end of file

Added: trunk/msautotest/misc/expected/runtime_sub_test006.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/runtime_sub_test006.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/misc/expected/runtime_sub_test007.txt
===================================================================
--- trunk/msautotest/misc/expected/runtime_sub_test007.txt	                        (rev 0)
+++ trunk/msautotest/misc/expected/runtime_sub_test007.txt	2011-03-18 14:20:01 UTC (rev 11222)
@@ -0,0 +1,10 @@
+<HTML>
+<HEAD><TITLE>MapServer Message</TITLE></HEAD>
+<!-- MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=GDAL INPUT=SHAPEFILE -->
+<BODY BGCOLOR="#FFFFFF">
+msDrawMap(): Image handling error. Failed to draw layer named &#39;layer4&#39;.
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name4%)
+msShapefileOpen(): Unable to access file. (/Users/sdlime/dev/msautotest/misc/./../query/data/%name4%)
+msValidateParameter(): Regular expression error. Parameter pattern validation failed.
+msEvalRegex(): Regular expression error. String failed expression test.
+</BODY></HTML>
\ No newline at end of file

Added: trunk/msautotest/misc/expected/runtime_sub_test008.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/runtime_sub_test008.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/misc/runtime_sub.map
===================================================================
--- trunk/msautotest/misc/runtime_sub.map	                        (rev 0)
+++ trunk/msautotest/misc/runtime_sub.map	2011-03-18 14:20:01 UTC (rev 11222)
@@ -0,0 +1,94 @@
+# Test Runtime Substitutions
+#
+# REQUIRES: INPUT=SHAPEFILE OUTPUT=GIF
+#
+# RUN_PARMS: runtime_sub_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer1&name1=bdry_counpy2' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test002.gif [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer2&name2=bdry_counpy2' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test003.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer2&name2=bad+value' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test004.gif [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer3&name3=bdry_counpy2' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test005.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer3&name3=bad+value' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test006.gif [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer4&name4=bdry_counpy2' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test007.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer4&name4=bad+value' > [RESULT_DEMIME]
+# RUN_PARMS: runtime_sub_test008.gif [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=map&layer=layer5' > [RESULT_DEMIME]
+#
+MAP
+  NAME 'runtime_sub'
+  EXTENT 125000 4785000 789000 5489000
+  UNITS METERS
+  SIZE 500 500
+
+  IMAGETYPE GIF
+
+  WEB
+    VALIDATION 
+      'name2' '.' # won't be used because of a layer validation rule
+      'name3' 'bdry_counpy2|indx_q100kpy4'
+    END
+  END
+
+  # no validation
+  LAYER
+    NAME 'layer1'
+    STATUS OFF
+    DATA '../query/data/%name1%'
+    TYPE POLYGON
+    CLASS
+      STYLE OUTLINECOLOR 51 51 51 END
+    END
+  END
+  
+  # layer-level validation
+  LAYER
+    NAME 'layer2'
+    STATUS OFF
+    DATA '../query/data/%name2%'
+    TYPE POLYGON
+    VALIDATION
+      'name2' 'bdry_counpy2|indx_q100kpy4'
+    END
+    CLASS
+      STYLE OUTLINECOLOR 51 51 51 END
+    END
+  END
+
+  # web-level validation
+  LAYER
+    NAME 'layer3'
+    STATUS OFF
+    DATA '../query/data/%name3%'
+    TYPE POLYGON
+    CLASS
+      STYLE OUTLINECOLOR 51 51 51 END
+    END
+  END
+
+  # old-style validation
+  LAYER
+    NAME 'layer4'
+    STATUS OFF
+    DATA '../query/data/%name4%'
+    TYPE POLYGON
+    METADATA
+      # 'default_name4' 'indx_q100kpy4'
+      'name4_validation_pattern' 'bdry_counpy2|indx_q100kpy4'
+    END
+    CLASS
+      STYLE OUTLINECOLOR 51 51 51 END
+    END
+  END
+
+  # default value
+  LAYER
+    NAME 'layer5'
+    STATUS OFF
+    DATA '../query/data/%name5%'
+    TYPE POLYGON
+    METADATA
+      'default_name5' 'indx_q100kpy4'
+      'name5_validation_pattern' 'bdry_counpy2|indx_q100kpy4'
+    END
+    CLASS
+      STYLE OUTLINECOLOR 51 51 51 END
+    END
+  END
+END



More information about the mapserver-commits mailing list