Download & Extend

Running Simpletest via run-tests has drupalGet always receive a 403 error.

Project:SimpleTest
Version:6.x-2.11
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

I have a version of Drupal running on our staging (and build) machine, using Ubuntu 10.04.1. There is a local test site used to run tests. If I go to the local web site and run simpletests through the UI, they all pass. If I run them from run-tests.sh, however, the test fail starting with:

GET http:///?q=user returned 403 (0 bytes).
Fail Browser 25

It appears that I am unable to access the site from the test location.

I suspect this is a problem somewhere with my apache or ubuntu configuration (especially as it worked earlier and there is nothing in the code changes to suggest a problem). What I don't know is where else to look. The .htaccess file look fine (and are unchanged from when it was working). There was some change in that the test subsite switch from being an internal mapping to a dns mapping.

Anything I should be checking?

Thanks

Comments

#1

The first thing with run-tests is to run it as the user your webserver uses. So, for example, sudo -u www-data php scripts/run-tests.sh ...

The second thing is you'll probably be much happier using the drush commands to run the tests. Same issue though - you need to be the user.

#2

The problem with drush right now is that the version that apt-get retrieves is too old to run tests. That part is fixable (don't use apt-get to fetch it). A bigger problem was that we were using a patch to put the results in JUnit xml (for jenkins/hudson). I will have to modify drush to get the same results. I will check the user issue.

#4

Status:active» postponed (maintainer needs more info)

You also need to make sure to specify the --url parameter with run-tests.sh.