Graham,
I made the change,

Index: test.py
===================================================================
--- test.py     (revision 408173)
+++ test.py     (working copy)
@@ -2111,6 +2111,7 @@
                                  PythonAuthenHandler("tests::phase_status_1"),
                                  PythonAuthenHandler("tests::phase_status_2"),
                                  PythonAuthenHandler("tests::phase_status_3"),
+
PythonAuthzHandler("tests::req_headers_out_access"),
                                  PythonFixupHandler("tests::phase_status_4"),
                                  PythonFixupHandler("tests::phase_status_5"),
                                  PythonFixupHandler("tests::phase_status_6"),


The tests then ran successfully,
----------------------------------------------------------------------
Ran 67 tests in 21.310s

OK
 Stopping Apache...
    /usr/local/sbin/httpd -k stop -f
/home/jlh/mod_python/trunk/test/conf/test.conf
.
----------------------------------------------------------------------
Ran 6 tests in 62.728s

OK

-Jeff

On 5/21/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote:

On 21/05/2006, at 4:18 PM, Jeff Hinrichs - DM&T wrote:

> me culpa, forgot to CC the group
>
> ---------- Forwarded message ----------
> From: Jeff Hinrichs - DM&T <[EMAIL PROTECTED]>
> Date: May 21, 2006 1:17 AM
> Subject: Re: mod_python trunk fails
> To: Graham Dumpleton <[EMAIL PROTECTED]>
>
>
> Graham,
> apache-2.2.2
>
> Here are the only lines that had the phrase "phase_status" I could
> find in the error_log:
> [Sun May 21 01:06:37 2006] [error] phase_status_1
> [Sun May 21 01:06:37 2006] [error] phase_status_2
> [Sun May 21 01:06:37 2006] [crit] [client 127.0.0.1] configuration
> error:  couldn't check access.  No groups file?: /tests.py

Hmmm, I thought I had worked this stuff out. :-(

Can you change test/test.py so the test configuration to that test
reads:

     def test_phase_status_conf(self):
         c = VirtualHost("*",
                         ServerName("test_phase_status"),
                         DocumentRoot(DOCUMENT_ROOT),
                         Directory(DOCUMENT_ROOT,
                                   SetHandler("mod_python"),
                                   AuthType("bogus"),
                                   AuthName("bogus"),
                                   Require("valid-user"),
                                   PythonAuthenHandler
("tests::phase_status_1"),
                                   PythonAuthenHandler
("tests::phase_status_2"),
                                   PythonAuthenHandler
("tests::phase_status_3"),
                                   PythonAuthzHandler
("tests::req_headers_out_access"),
                                   PythonFixupHandler
("tests::phase_status_4"),
                                   PythonFixupHandler
("tests::phase_status_5"),
                                   PythonFixupHandler
("tests::phase_status_6"),
                                   PythonHandler
("tests::phase_status_7"),
                                   PythonDebug("On")))
         return str(c)

Ie., add the PythonAuthzHandler entry.

Don't worry about what tests::req_headers_out_access is, I am just
using it
as a convenient function which simply returns apache.OK and does nothing
else.

Graham



--
Jeff Hinrichs
Dundee Media & Technology, Inc
[EMAIL PROTECTED]
402.320.0821

Reply via email to