TestingParty08: drupal_http_request basic auth needs a test

chx - August 17, 2008 - 08:10
Project:Drupal
Version:7.x-dev
Component:tests
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Run drupal_http_request for http://user:pass@$base_url and assert $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] .

#1

flobruit - August 28, 2008 - 08:42
Status:active» needs review

Patch created during the TestingParty08 with nickske.

Creates a dummy module that simply returns the two server variables that were passed using HTTP basic authentication, and check that the results are correct.

AttachmentSizeStatusTest resultOperations
drupal_http_request_basic_auth.patch3.14 KBIgnoredNoneNone

#2

domas - August 30, 2008 - 12:21
Priority:critical» normal

this is the test I started writing during the awesome testing party. I incorporated the above mentioned patch. If there are any comments regarding the code quality or anything, please let me know.

----
Sorry, posted this in the wrong issue.

AttachmentSizeStatusTest resultOperations
drupal_request.patch5.62 KBIgnoredNoneNone

#3

boombatower - August 30, 2008 - 23:51
Status:needs review» reviewed & tested by the community

edit: error.

#4

boombatower - August 30, 2008 - 23:52
Status:reviewed & tested by the community» needs review

Reviewing.

#5

boombatower - August 30, 2008 - 23:57
Status:needs review» duplicate

#296310: TestingParty08: drupal_http_request redirects need a test includes this test and documents the patch creators.

 
 

Drupal is a registered trademark of Dries Buytaert.