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:
Thomas Gelf 2016-11-14 13:39:20 +01:00
parent 913d934762
commit fee8e7847d

View File

@ -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()
);