mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaHostTest: fix erroneous test
Code behaves correct now, the test wasn't up to date. However, it wasn't failing as the object has been changed at runtime while the (at that time already filled) internal lookup cache wasn't cleared. Woulnd't have had any effect on real-world environments. However, it's fixed right now.
This commit is contained in:
parent
913d934762
commit
fee8e7847d
@ -381,7 +381,11 @@ class IcingaHostTest extends BaseTestCase
|
||||
$config = new IcingaConfig($db);
|
||||
$host->renderToConfig($config);
|
||||
$this->assertEquals(
|
||||
array('zones.d/___TEST___zone/hosts.conf'),
|
||||
array(
|
||||
'zones.d/___TEST___zone/hosts.conf',
|
||||
'zones.d/___TEST___zone/agent_endpoints.conf',
|
||||
'zones.d/___TEST___zone/agent_zones.conf'
|
||||
),
|
||||
$config->getFileNames()
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user