Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

Apache::Test problem

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


torsten.foertsch at gmx

Aug 21, 2009, 4:39 AM

Post #1 of 1 (403 views)
Permalink
Apache::Test problem

Hi,

I thought I had found an issue in t/api/add_config.t but the problem is
probably AT.

t/api/add_config.t creates a vhost. If I start httpd
with "t/TEST -start-httpd" a new configuration is created in
t/conf/apache_test_config.pm and the shows the correct vhost=>port
mapping:

'TestAPI::add_config' => {
'hostport' => 'localhost:8567',
...

httpd runs and I can connect to localhost:8567 and run the test via
curl.

Now, if I try to run the test via "t/TEST -verbose -run-tests
t/api/add_config.t" it tries to connect to a completely different port:

# connecting to http://localhost:8607/TestAPI__add_config/

The point is, t/TEST overwrites t/conf/apache_test_config.pm or rather
reconfigures the system. But now the default ports at 8529 upwards are
in use. So, it assigns new ones. This must be prevented in
the -run-tests case. I think the whole reconfig thing should be skipped
with -run-tests.

Does anyone know where to lay hands on or do I have to figure it out
myself?

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.