[kforge-dev] KForge test failures (when uri_prefix is set)
Rufus Pollock
rufus.pollock at okfn.org
Wed Aug 22 14:51:12 UTC 2007
John Bywater wrote:
> 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 url being generated by urlpermissiontest is clearly wrong:
/project_service?project=warandpeace&service=example
it should be:
/uri_prefix/warandpeace/example
I'll take a look at the code and see if I can figure out what is wrong.
> 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?
Yes that's right. I'd already noticed this one and we need to update it
to support prefixes (or perhaps we should have something less specific
e.g. test certain strings are 'in' the output string).
~rufus
>
> ======================================================================
> 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($|/.*)
>
>
More information about the kforge-dev
mailing list