I need to be able to test https request while the tests are being run on http, see #1261454: Add tests for http/https language domain negotiation for more information, on my local install it kinda works, but the testbot complained on all https requests, so do all bots fully support https and if not what is the best way to handle this inside simpletests?

Comments

attiks’s picture

Project: Project Issue File Review » drupaltestbot
Version: 6.x-2.x-dev »
rfay’s picture

Category: support » feature

So.. In your local tests, you're able to test successfully with a plain-old https setup (with a self-signed key)? So we could do OK with a self-signed key?

rfay’s picture

Title: Can all bots run https test » Run HTTPS on testbots
attiks’s picture

Title: Run HTTPS on testbots » Can all bots run https test

Yes, I'm was using a quickstart VM, it comes with http + https, all self signed, but I can not remember if I added an exception, I think i did. All tests where run from within the browser, I guess the testbot uses the scripts.

boombatower’s picture

Any https tests should use /modules/simpletest/tests/https.php which fakes the variables that Drupal checks to determine if the request if over https. Grep to find the test that shows example of how to use.

Running actual https tests apache, ssl, etc which is heavier load and unnecessary.

rfay’s picture

@attiks, I did update the testbot config to allow directly running https. However, run_tests.sh does not return results when you're running using https. So there's a core bug there (at least in 7).

rfay’s picture

Status: Active » Fixed

Fixed from testbot perspective...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.