Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3911749
D371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D371.diff
View Options
diff --git a/tests/prod-environment-behaves-correctly/YsulApacheTest.php b/tests/prod-environment-behaves-correctly/YsulApacheTest.php
new file mode 100644
--- /dev/null
+++ b/tests/prod-environment-behaves-correctly/YsulApacheTest.php
@@ -0,0 +1,41 @@
+<?php
+
+require_once 'traits/assertHttp.php';
+
+class YsulApacheTest extends PHPUnit_Framework_TestCase {
+ use assertHttp;
+
+ /**
+ * Apache server hostname to tet
+ */
+ const SERVER = 'ysul.nasqueron.org';
+
+ /**
+ * Apache port
+ */
+ const PORT = 3200;
+
+ /**
+ * Path to SuEXEC binary
+ */
+ const SUEXEC = '/usr/local/sbin/suexec';
+
+ public function testApacheIsLive () {
+ $url = "http://" . self::SERVER . ":" . self::PORT . "/";
+ $this->assertHttpResponseCode(200, $url, "Apache looks down.");
+ }
+
+ public function testSuEXECHasBeenInstalled () {
+ // Reported by amj on T823, see also T508 and T517.
+
+ if (gethostname() !== self::SERVER) {
+ $this->markTestSkipped(
+ "This test can only run on " . self::SERVER
+ );
+ };
+
+ $this->assertTrue(
+ file_exists(self::SUEXEC)
+ );
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 03:47 (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307347
Default Alt Text
D371.diff (1 KB)
Attached To
Mode
D371: Check if Apache is up and SuEXEC installed on Ysul
Attached
Detach File
Event Timeline
Log In to Comment