[Inteproxy-commits] r205 - in trunk: . test

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 11 21:10:23 CEST 2009


Author: bh
Date: 2009-09-11 21:10:22 +0200 (Fri, 11 Sep 2009)
New Revision: 205

Modified:
   trunk/ChangeLog
   trunk/test/test_transcoder_map.py
Log:
* test/test_transcoder_map.py
(TestTranscoderMapWithPathWildcards.test_get_transcoder_http_proxy)
(TestTranscoderMapWithHostWildcards.test_get_transcoder_http_proxy):
Add some more corner cases: check that the patterns are matched
agains the entire hostname or path and not just a prefix


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-09-11 19:07:19 UTC (rev 204)
+++ trunk/ChangeLog	2009-09-11 19:10:22 UTC (rev 205)
@@ -1,6 +1,14 @@
 2009-09-11  Bernhard Herzog  <bh at intevation.de>
 
 	* test/test_transcoder_map.py
+	(TestTranscoderMapWithPathWildcards.test_get_transcoder_http_proxy)
+	(TestTranscoderMapWithHostWildcards.test_get_transcoder_http_proxy):
+	Add some more corner cases: check that the patterns are matched
+	agains the entire hostname or path and not just a prefix
+
+2009-09-11  Bernhard Herzog  <bh at intevation.de>
+
+	* test/test_transcoder_map.py
 	(TestTranscoderMapNoWildcards.test_lookup): Removed this test for
 	an internal method that is adequately tested indirectly anyway.
 

Modified: trunk/test/test_transcoder_map.py
===================================================================
--- trunk/test/test_transcoder_map.py	2009-09-11 19:07:19 UTC (rev 204)
+++ trunk/test/test_transcoder_map.py	2009-09-11 19:10:22 UTC (rev 205)
@@ -125,8 +125,14 @@
              BasicAuthTranscoder),
             ("POST", "http://intevation.de/prefix/bla/blub/suffix",
              BasicAuthTranscoder),
+
+            # not matched:
             ("GET", "http://intevation.de/prefix/bla/", IdentityTranscoder),
             ("POST", "http://intevation.de/prefix/bla/", IdentityTranscoder),
+            ("GET", "http://intevation.de/prefix/bla/suffix/",
+             IdentityTranscoder),
+            ("POST", "http://intevation.de/prefix/bla/suffix/more",
+             IdentityTranscoder),
             ]
 
         for method, url, expectedcls in test_cases:
@@ -186,6 +192,8 @@
              IdentityTranscoder),
             ("GET", "http://frida.example.org/", IdentityTranscoder),
             ("POST", "http://data.example.net/", IdentityTranscoder),
+            ("GET", "http://geodata.example.com.net/frida/wms",
+             IdentityTranscoder),
             ]
 
         for method, url, expectedcls in test_cases:



More information about the Inteproxy-commits mailing list