Page MenuHomeDevCentral

No OneTemporary

diff --git a/EtherpadTest.php b/EtherpadTest.php
index e048ef7..c7f8a0f 100644
--- a/EtherpadTest.php
+++ b/EtherpadTest.php
@@ -1,26 +1,26 @@
<?php
require_once 'traits/assertHttp.php';
class EtherpadTest extends PHPUnit\Framework\TestCase {
use assertHttp;
public function testEtherpadIsLive () {
$this->assertHttpResponseCode(301, 'http://pad.nasqueron.org/', "Etherpad isn't redirected on HTTP.");
$this->assertHttpResponseCode(200, 'https://pad.nasqueron.org/', "Etherpad looks down.");
$this->assertHttpResponseCode(200, 'https://pad.wolfplex.be', "Etherpad doesn't reply to pad.wolfplex.be vhost.");
$this->assertHttpResponseCode(404, 'https://pad.nasqueron.org/notexisting', 'A 404 code were expected for a not existing Etherpad page.');
$this->assertHttpResponseCode(200, 'https://pad.nasqueron.org/metrics', "ep_ether-o-meter plugin doesn't seem installed.");
}
public function testWolfplexApiWorks () {
//Reported by philectro - 09:42 < philectro> hey tous les pad ont disparu :o
- $url = "http://www.wolfplex.be/pad/";
+ $url = "https://api.wolfplex.org/pads/";
$this->assertHttpResponseCode(200, $url);
- $stringOnlyAvailableWhenApiWorks = '<li><a href="/pad/';
+ $stringOnlyAvailableWhenApiWorks = '","'; // pads titles separator
$currentContent = file_get_contents($url);
$this->assertContains($stringOnlyAvailableWhenApiWorks, $currentContent, "On Ysul, /home/wolfplex.org/logs/api.log could help. But more probably, you reinstalled the Etherpad container without restoring the API key. Move the former APIKEY.txt file to /opt/etherpad-lite or, if lost, update Wolfplex API credentials with the new API key.");
}
}

File Metadata

Mime Type
text/x-diff
Expires
Fri, Nov 21, 16:58 (10 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3183788
Default Alt Text
(1 KB)

Event Timeline