mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
monit: create template before stopping Monit for ServiceController test
This commit is contained in:
parent
a9159026dc
commit
11903e7478
@ -286,6 +286,10 @@ class MonitTest extends \PHPUnit\Framework\TestCase
|
||||
$svcMonit = new \OPNsense\Monit\Api\ServiceController;
|
||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||
|
||||
// configtest
|
||||
$response = $svcMonit->configtestAction();
|
||||
$this->assertEquals($response['result'], 'Control file syntax OK');
|
||||
|
||||
// status
|
||||
$response = $svcMonit->statusAction();
|
||||
$this->assertRegExp('/running|stopped/', $response['status']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user