mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/relayd: fix test after fiddling with settings controller
CC: @fbrendel
This commit is contained in:
parent
4d28abf293
commit
bbda0a48ea
2 changed files with 3 additions and 8 deletions
|
|
@ -5,9 +5,4 @@ PLUGIN_DEPENDS= relayd
|
|||
PLUGIN_COMMENT= Relayd Load Balancer
|
||||
PLUGIN_MAINTAINER= frank.brendel@eurolog.com
|
||||
|
||||
test:
|
||||
@cd /usr/local/opnsense/mvc/tests && \
|
||||
phpunit --configuration PHPunit.xml \
|
||||
${.CURDIR}/src/opnsense/mvc/tests
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ class RelaydTest extends \PHPUnit\Framework\TestCase
|
|||
// set correct interval and incorrect timeout (s. testServiceController)
|
||||
$_POST = array('relayd' => ['general' => ['interval' => '10', 'timeout' => 86400, 'enabled' => '0']]);
|
||||
$response = self::$setRelayd->setAction('general');
|
||||
$this->assertEquals($response['response'], "OK\n\n");
|
||||
$this->assertEquals($response['status'], 'ok');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -386,7 +386,7 @@ class RelaydTest extends \PHPUnit\Framework\TestCase
|
|||
);
|
||||
$_POST = array('relayd' => ['general' => ['timeout' => '200']]);
|
||||
$response = self::$setRelayd->setAction('general');
|
||||
$this->assertEquals($response['result'], 'ok');
|
||||
$this->assertEquals($response['status'], 'ok');
|
||||
$response = $svcRelayd->configtestAction();
|
||||
$this->assertEquals($response['template'], 'OK');
|
||||
$this->assertEquals($response['result'], 'configuration OK');
|
||||
|
|
@ -398,7 +398,7 @@ class RelaydTest extends \PHPUnit\Framework\TestCase
|
|||
// enable
|
||||
$_POST = array('relayd' => ['general' => ['enabled' => '1']]);
|
||||
$response = self::$setRelayd->setAction('general');
|
||||
$this->assertEquals($response['result'], 'ok');
|
||||
$this->assertEquals($response['status'], 'ok');
|
||||
|
||||
// reconfigure
|
||||
$response = $svcRelayd->reconfigureAction();
|
||||
|
|
|
|||
Loading…
Reference in a new issue