summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-08-18 14:17:01 +0200
committerwebchick <webchick@24967.no-reply.drupal.org>2012-08-18 14:17:01 +0200
commited9bee506538094810d6da37c782db230ae57710 (patch)
treeeb4e3272b4c261c5558f3fd474920bc8c49d2178 /modules/openid
parentb8f53337739f6d5f07bea18342473f4e6794eb97 (diff)
downloadbrdo-ed9bee506538094810d6da37c782db230ae57710.tar.gz
brdo-ed9bee506538094810d6da37c782db230ae57710.tar.bz2
Issue #803294 by wojtha, mfb, c960657, Heine, oriol_e9g: Fixed OpenID discovery and login tests fail on HTTPS site.
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/openid/openid.test b/modules/openid/openid.test
index 7e766b9fe..1752924df 100644
--- a/modules/openid/openid.test
+++ b/modules/openid/openid.test
@@ -78,13 +78,13 @@ class OpenIDFunctionalTestCase extends OpenIDWebTestCase {
// the URL of the OpenID Provider Endpoint.
// Identifier is the URL of an XRDS document.
- // The URL scheme is stripped in order to test that the supplied identifier
- // is normalized in openid_begin().
+ // On HTTP test environments, the URL scheme is stripped in order to test
+ // that the supplied identifier is normalized in openid_begin().
$identity = url('openid-test/yadis/xrds', array('absolute' => TRUE));
- $this->addIdentity(preg_replace('@^https?://@', '', $identity), 2, 'http://example.com/xrds', $identity);
+ $this->addIdentity(preg_replace('@^http://@', '', $identity), 2, 'http://example.com/xrds', $identity);
$identity = url('openid-test/yadis/xrds/delegate', array('absolute' => TRUE));
- $this->addIdentity(preg_replace('@^https?://@', '', $identity), 2, 'http://example.com/xrds-delegate', $identity);
+ $this->addIdentity(preg_replace('@^http://@', '', $identity), 2, 'http://example.com/xrds-delegate', $identity);
// Identifier is the URL of an XRDS document containing an OP Identifier
// Element. The Relying Party sends the special value
@@ -92,8 +92,8 @@ class OpenIDFunctionalTestCase extends OpenIDWebTestCase {
// Identifier. The OpenID Provider responds with the actual identifier
// including the fragment.
$identity = url('openid-test/yadis/xrds/dummy-user', array('absolute' => TRUE, 'fragment' => $this->randomName()));
- // Tell openid_test.module to respond with this identifier. We test if
- // openid_complete() processes it right.
+ // Tell openid_test.module to respond with this identifier. If the fragment
+ // part is present in the identifier, it should be retained.
variable_set('openid_test_response', array('openid.claimed_id' => $identity));
$this->addIdentity(url('openid-test/yadis/xrds/server', array('absolute' => TRUE)), 2, 'http://specs.openid.net/auth/2.0/identifier_select', $identity);
variable_set('openid_test_response', array());