Page MenuHomeDevCentral

D491.id1192.diff
No OneTemporary

D491.id1192.diff

diff --git a/tests/prod-environment-behaves-correctly/DevCentralTest.php b/tests/prod-environment-behaves-correctly/DevCentralTest.php
--- a/tests/prod-environment-behaves-correctly/DevCentralTest.php
+++ b/tests/prod-environment-behaves-correctly/DevCentralTest.php
@@ -6,11 +6,14 @@
use assertHttp;
public function testWebsiteIsUp () {
- $this->assertHttpResponseCode(200, 'http://devcentral.nasqueron.org', 'DevCentral looks down.');
$this->assertHttpResponseCode(200, 'https://devcentral.nasqueron.org', "DevCentral HTTPS issue.");
- $this->assertHttpResponseCode(500, 'http://phabricator-files-for-devcentral-nasqueron.spacetechnology.net', "DevCentral alternative domain should return a 500 error code for homepage. Check phabricator.base-uri isn't empty.");
+ $this->assertHttpResponseCode(500, 'https://phabricator-files-for-devcentral-nasqueron.spacetechnology.net', "DevCentral alternative domain should return a 500 error code for homepage. Check phabricator.base-uri isn't empty.");
}
+ public function testNginxRedirectsHttpToHttps () {
+ $this->assertHttpResponseCode(301, 'http://devcentral.nasqueron.org', 'Nginx should redirect http to https with a 301 code.');
+ }
+
public function testAphlictIsUp () {
$this->assertHttpResponseCode(405, 'http://dwellers.nasqueron.org:22281/', 'Aphlict server seems down, does aphlict container is launched in Docker engine?');
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 13:39 (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247486
Default Alt Text
D491.id1192.diff (1 KB)

Event Timeline