This should Add most of the test for htaccess

hailu - August 22, 2008 - 15:36
Project:CivicActions
Version:5.x-1.6
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Tests to make sure htaccess is properly configured to provide Basic Authentication protection to our development environment at CivicActions.

function testHtaccessLink() still needs to be fleshed out.

AttachmentSize
ca_htaccess_test_dev_live_qa.patch2.03 KB

#1

douggreen - August 22, 2008 - 15:39

I'm wondering if we should check the site name, and then run the dev/qa test on the dev/qa sites and the live test on the live site. This would make it easier to just always include this test, rather than having to select which test we need to run. I think that the site name is available in $_SERVER.

#2

hailu - August 28, 2008 - 19:04

Okay, i've switch the test to use $_SERVER and fixed some good gotcha's in the use of drupal_http_request(). The tests for the live, dev and qa sites should all fire cleanly with the code architecture as is.

I'll roll another patch soon to add the link test, the 'missing link'...

AttachmentSize
ca_htaccess_test_dev_live_qa_1.patch 2.15 KB
 
 

Drupal is a registered trademark of Dries Buytaert.