[kforge-dev] KForge test failures (when uri_prefix is set)

John Bywater john.bywater at appropriatesoftware.net
Wed Aug 22 12:29:33 UTC 2007


Hey Rufus,

I was just been doing some work on the Provide system, to support 
providing all application services off a single hostname, when I got the 
following failures from the KForge test suite when running Provide in 
its "distinguish purposes by path" mode.

The 'ERROR' I don't really understand. What's happening here?

The 'FAIL' I perhaps do: I think the test needs to be fixed for the case 
where the uri_prefix has a value. Would you agree?

Best wishes,

John.




======================================================================
ERROR: warandpeace allows visitor access
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/apache/urlpermissiontest.py", 
line 52, in test_isAllowedAccess2
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/apache/urlpermission.py", 
line 20, in isAllowedAccess
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/apache/urlpermission.py", 
line 55, in getService
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/url.py", 
line 149, in decodeServicePath
Exception: project_service?project=warandpeace&service=example is not 
long enough to be a service path

======================================================================
FAIL: test_getDjangoHandledPaths 
(kforge.apache.apacheconfigtest.ApacheConfigBuilderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/apache/apacheconfigtest.py", 
line 54, in test_getDjangoHandledPaths
  File 
"/home/john/provided/var/provisions/kforge/applications/0.13/services/test/live/lib/python/kforge-0.13-py2.4.egg/kforge/apache/apacheconfigtest.py", 
line 35, in failUnlessFragInFrag
AssertionError: ^/$| not in 
^/test/kforge/$|/test/kforge/person($|/.*)|/test/kforge/project($|/.*)|/test/kforge/admin/model($|/.*)|/test/kforge/login($|/.*)|/test/kforge/logout($|/.*)

-- 
Appropriate Software Foundation
Registered in England and Wales
17 Chapel Street, Hyde Cheshire
Company number: 04977110
W: appropriatesoftware.net
T: 0870 720 2944
M: 0781 139 2292






More information about the kforge-dev mailing list